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
e1b78d36
Kaydet (Commit)
e1b78d36
authored
Kas 26, 2001
tarafından
Sascha Ballach
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#95181#; call the setValue method of the XStatusIndicator as often as possible to enable reschedule
üst
127c3ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
ProgressBarHelper.cxx
xmloff/source/core/ProgressBarHelper.cxx
+11
-8
No files found.
xmloff/source/core/ProgressBarHelper.cxx
Dosyayı görüntüle @
e1b78d36
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: ProgressBarHelper.cxx,v $
* $RCSfile: ProgressBarHelper.cxx,v $
*
*
* $Revision: 1.1
2
$
* $Revision: 1.1
3
$
*
*
* last change: $Author:
dvo $ $Date: 2001-10-12 13:56:39
$
* last change: $Author:
sab $ $Date: 2001-11-26 11:05:51
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -127,12 +127,15 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
...
@@ -127,12 +127,15 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
double
fValue
(
nValue
);
double
fValue
(
nValue
);
double
fNewValue
((
fValue
*
nRange
)
/
nReference
);
double
fNewValue
((
fValue
*
nRange
)
/
nReference
);
double
fPercent
((
fNewValue
*
100
)
/
nRange
);
xStatusIndicator
->
setValue
((
sal_Int32
)
fNewValue
);
if
(
fPercent
>=
(
fOldPercent
+
fProgressStep
))
{
// #95181# disabled, because we want to call setValue very often to enable a good reschedule
xStatusIndicator
->
setValue
((
sal_Int32
)
fNewValue
);
// double fPercent ((fNewValue * 100) / nRange);
fOldPercent
=
fPercent
;
// if (fPercent >= (fOldPercent + fProgressStep))
}
// {
// xStatusIndicator->setValue((sal_Int32)fNewValue);
// fOldPercent = fPercent;
// }
}
}
else
else
DBG_ERROR
(
"tried to set a wrong value on the progressbar"
);
DBG_ERROR
(
"tried to set a wrong value on the progressbar"
);
...
...
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