summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-11-26 10:05:51 +0000
committerSascha Ballach <sab@openoffice.org>2001-11-26 10:05:51 +0000
commite1b78d36008d1fd188ca8dc154ad069d3476520c (patch)
tree307cf8d2fef1c0f676a6124a6632c4d57fd50f28
parent127c3ef417556783410b5d5d57ed1afc7ff7501d (diff)
#95181#; call the setValue method of the XStatusIndicator as often as possible to enable reschedule
-rw-r--r--xmloff/source/core/ProgressBarHelper.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx
index d024385ef60f..b9e4a5d4219f 100644
--- a/xmloff/source/core/ProgressBarHelper.cxx
+++ b/xmloff/source/core/ProgressBarHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ProgressBarHelper.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * 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
* either of the following licenses
@@ -127,12 +127,15 @@ void ProgressBarHelper::SetValue(sal_Int32 nTempValue)
double fValue(nValue);
double fNewValue ((fValue * nRange) / nReference);
- double fPercent ((fNewValue * 100) / nRange);
- if (fPercent >= (fOldPercent + fProgressStep))
- {
- xStatusIndicator->setValue((sal_Int32)fNewValue);
- fOldPercent = fPercent;
- }
+ xStatusIndicator->setValue((sal_Int32)fNewValue);
+
+ // #95181# disabled, because we want to call setValue very often to enable a good reschedule
+// double fPercent ((fNewValue * 100) / nRange);
+// if (fPercent >= (fOldPercent + fProgressStep))
+// {
+// xStatusIndicator->setValue((sal_Int32)fNewValue);
+// fOldPercent = fPercent;
+// }
}
else
DBG_ERROR("tried to set a wrong value on the progressbar");