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
3a22d789
Kaydet (Commit)
3a22d789
authored
Kas 21, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid re-drawing progress bar too frequently.
Change-Id: I01dcd6d421c1f648b4cd8413e3baf50fd26d4c8f
üst
5db19a41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
worksheethelper.cxx
sc/source/filter/oox/worksheethelper.cxx
+8
-6
No files found.
sc/source/filter/oox/worksheethelper.cxx
Dosyayı görüntüle @
3a22d789
...
...
@@ -96,12 +96,14 @@ namespace {
void
lclUpdateProgressBar
(
const
ISegmentProgressBarRef
&
rxProgressBar
,
const
CellRangeAddress
&
rUsedArea
,
sal_Int32
nRow
)
{
if
(
rxProgressBar
.
get
()
&&
(
rUsedArea
.
StartRow
<=
nRow
)
&&
(
nRow
<=
rUsedArea
.
EndRow
)
)
{
double
fPosition
=
static_cast
<
double
>
(
nRow
-
rUsedArea
.
StartRow
+
1
)
/
(
rUsedArea
.
EndRow
-
rUsedArea
.
StartRow
+
1
);
if
(
rxProgressBar
->
getPosition
()
<
fPosition
)
rxProgressBar
->
setPosition
(
fPosition
);
}
if
(
!
rxProgressBar
||
nRow
<
rUsedArea
.
StartRow
||
rUsedArea
.
EndRow
<
nRow
)
return
;
double
fCurPos
=
rxProgressBar
->
getPosition
();
double
fNewPos
=
static_cast
<
double
>
(
nRow
-
rUsedArea
.
StartRow
+
1.0
)
/
(
rUsedArea
.
EndRow
-
rUsedArea
.
StartRow
+
1.0
);
if
(
fCurPos
<
fNewPos
&&
(
fNewPos
-
fCurPos
)
>
0.3
)
// Try not to re-draw progress bar too frequently.
rxProgressBar
->
setPosition
(
fNewPos
);
}
void
lclUpdateProgressBar
(
const
ISegmentProgressBarRef
&
rxProgressBar
,
double
fPosition
)
...
...
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