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
6c695e12
Kaydet (Commit)
6c695e12
authored
Eki 04, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
faster repaint after cond format dialog
Change-Id: Id5894efd385ad20c7a544142ce4fa4ec5d4ef062
üst
6ba6fe0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
docfunc.cxx
sc/source/ui/docshell/docfunc.cxx
+11
-3
No files found.
sc/source/ui/docshell/docfunc.cxx
Dosyayı görüntüle @
6c695e12
...
@@ -5090,9 +5090,11 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
...
@@ -5090,9 +5090,11 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
if
(
pDoc
->
IsTabProtected
(
nTab
))
if
(
pDoc
->
IsTabProtected
(
nTab
))
return
;
return
;
boost
::
scoped_ptr
<
ScRange
>
pRepaintRange
;
if
(
nOldFormat
)
if
(
nOldFormat
)
{
{
ScConditionalFormat
*
pOldFormat
=
pDoc
->
GetCondFormList
(
nTab
)
->
GetFormat
(
nOldFormat
);
ScConditionalFormat
*
pOldFormat
=
pDoc
->
GetCondFormList
(
nTab
)
->
GetFormat
(
nOldFormat
);
pRepaintRange
.
reset
(
new
ScRange
(
pOldFormat
->
GetRange
().
Combine
()
));
if
(
pOldFormat
)
if
(
pOldFormat
)
{
{
RemoveCondFormatAttributes
(
pDoc
,
pOldFormat
);
RemoveCondFormatAttributes
(
pDoc
,
pOldFormat
);
...
@@ -5103,14 +5105,20 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
...
@@ -5103,14 +5105,20 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
}
}
if
(
pFormat
)
if
(
pFormat
)
{
{
if
(
pRepaintRange
)
pRepaintRange
->
ExtendTo
(
rRanges
.
Combine
());
else
pRepaintRange
.
reset
(
new
ScRange
(
rRanges
.
Combine
()));
sal_uLong
nIndex
=
pDoc
->
AddCondFormat
(
pFormat
,
nTab
);
sal_uLong
nIndex
=
pDoc
->
AddCondFormat
(
pFormat
,
nTab
);
SetConditionalFormatAttributes
(
pDoc
,
rRanges
,
nIndex
);
SetConditionalFormatAttributes
(
pDoc
,
rRanges
,
nIndex
);
size_t
n
=
rRanges
.
size
();
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
pFormat
->
DoRepaint
(
rRanges
[
i
]);
pDoc
->
SetStreamValid
(
nTab
,
false
);
pDoc
->
SetStreamValid
(
nTab
,
false
);
}
}
if
(
pRepaintRange
)
rDocShell
.
PostPaint
(
*
pRepaintRange
,
PAINT_GRID
);
aModificator
.
SetDocumentModified
();
aModificator
.
SetDocumentModified
();
SFX_APP
()
->
Broadcast
(
SfxSimpleHint
(
SC_HINT_AREAS_CHANGED
));
SFX_APP
()
->
Broadcast
(
SfxSimpleHint
(
SC_HINT_AREAS_CHANGED
));
}
}
...
...
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