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
2aefb89b
Kaydet (Commit)
2aefb89b
authored
Tem 09, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
execute the terrible bottle neck loop only if there are conditional formats
Change-Id: Ic8bd65a728289c9fa1a0721b0ecbd9b4a48672ca
üst
57792314
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
conditio.hxx
sc/inc/conditio.hxx
+1
-0
conditio.cxx
sc/source/core/data/conditio.cxx
+5
-0
documen7.cxx
sc/source/core/data/documen7.cxx
+4
-1
No files found.
sc/inc/conditio.hxx
Dosyayı görüntüle @
2aefb89b
...
@@ -495,6 +495,7 @@ public:
...
@@ -495,6 +495,7 @@ public:
const_iterator
end
()
const
;
const_iterator
end
()
const
;
size_t
size
()
const
;
size_t
size
()
const
;
bool
empty
()
const
;
void
erase
(
sal_uLong
nIndex
);
void
erase
(
sal_uLong
nIndex
);
...
...
sc/source/core/data/conditio.cxx
Dosyayı görüntüle @
2aefb89b
...
@@ -2321,6 +2321,11 @@ size_t ScConditionalFormatList::size() const
...
@@ -2321,6 +2321,11 @@ size_t ScConditionalFormatList::size() const
return
maConditionalFormats
.
size
();
return
maConditionalFormats
.
size
();
}
}
bool
ScConditionalFormatList
::
empty
()
const
{
return
maConditionalFormats
.
empty
();
}
void
ScConditionalFormatList
::
erase
(
sal_uLong
nIndex
)
void
ScConditionalFormatList
::
erase
(
sal_uLong
nIndex
)
{
{
for
(
iterator
itr
=
begin
();
itr
!=
end
();
++
itr
)
for
(
iterator
itr
=
begin
();
itr
!=
end
();
++
itr
)
...
...
sc/source/core/data/documen7.cxx
Dosyayı görüntüle @
2aefb89b
...
@@ -141,8 +141,11 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint, bool bB
...
@@ -141,8 +141,11 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint, bool bB
continue
;
continue
;
ScConditionalFormatList
*
pCondFormList
=
GetCondFormList
(
nTab
);
ScConditionalFormatList
*
pCondFormList
=
GetCondFormList
(
nTab
);
if
(
pCondFormList
)
if
(
pCondFormList
&&
!
pCondFormList
->
empty
()
)
{
{
/* TODO: looping over all possible cells is a terrible bottle neck,
* for each cell looping over all conditional formats even worse,
* this certainly needs a better method. */
ScAddress
aAddress
(
0
,
0
,
nTab
);
ScAddress
aAddress
(
0
,
0
,
nTab
);
for
(
SCROW
nRow
=
nRow1
;
nRow
<=
nRow2
;
++
nRow
)
for
(
SCROW
nRow
=
nRow1
;
nRow
<=
nRow2
;
++
nRow
)
{
{
...
...
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