Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
dc99aa32
Kaydet (Commit)
dc99aa32
authored
Eyl 27, 2016
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move up the less common case and reduce indentation for the main case.
Change-Id: Id30a849af718629515251cac39eead39a2d9e5e6
üst
a4c97429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
dbdocfun.cxx
sc/source/ui/docshell/dbdocfun.cxx
+23
-24
No files found.
sc/source/ui/docshell/dbdocfun.cxx
Dosyayı görüntüle @
dc99aa32
...
@@ -1580,34 +1580,33 @@ void ScDBDocFunc::RefreshPivotTableGroups(ScDPObject* pDPObj)
...
@@ -1580,34 +1580,33 @@ void ScDBDocFunc::RefreshPivotTableGroups(ScDPObject* pDPObj)
if
(
!
pSaveData
)
if
(
!
pSaveData
)
return
;
return
;
if
(
!
pDPs
->
HasTable
(
pDPObj
))
{
// This table is under construction so no need for a whole update (UpdatePivotTable()).
pDPObj
->
ReloadGroupTableData
();
return
;
}
// Update all linked tables, if this table is part of the cache (ScDPCollection)
// Update all linked tables, if this table is part of the cache (ScDPCollection)
if
(
pDPs
->
HasTable
(
pDPObj
))
std
::
set
<
ScDPObject
*>
aRefs
;
if
(
!
pDPs
->
ReloadGroupsInCache
(
pDPObj
,
aRefs
))
return
;
// We allow pDimData being NULL.
const
ScDPDimensionSaveData
*
pDimData
=
pSaveData
->
GetExistingDimensionData
();
std
::
set
<
ScDPObject
*>::
iterator
it
=
aRefs
.
begin
(),
itEnd
=
aRefs
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
{
std
::
set
<
ScDPObject
*>
aRefs
;
ScDPObject
*
pObj
=
*
it
;
if
(
!
pDPs
->
ReloadGroupsInCache
(
pDPObj
,
aRefs
))
if
(
pObj
!=
pDPObj
)
return
;
// We allow pDimData being NULL.
const
ScDPDimensionSaveData
*
pDimData
=
pSaveData
->
GetExistingDimensionData
();
std
::
set
<
ScDPObject
*>::
iterator
it
=
aRefs
.
begin
(),
itEnd
=
aRefs
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
{
ScDPObject
*
pObj
=
*
it
;
pSaveData
=
pObj
->
GetSaveData
();
if
(
pObj
!=
pDPObj
)
if
(
pSaveData
)
{
pSaveData
->
SetDimensionData
(
pDimData
);
pSaveData
=
pObj
->
GetSaveData
();
if
(
pSaveData
)
pSaveData
->
SetDimensionData
(
pDimData
);
}
// This action is intentionally not undoable since it modifies cache.
UpdatePivotTable
(
*
pObj
,
false
,
false
);
}
}
}
else
// Otherwise update only this single table
// This action is intentionally not undoable since it modifies cache.
{
UpdatePivotTable
(
*
pObj
,
false
,
false
);
// This table is under construction so no need for a whole update (UpdatePivotTable()).
pDPObj
->
ReloadGroupTableData
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment