Kaydet (Commit) e1b78d36 authored tarafından Sascha Ballach's avatar Sascha Ballach

#95181#; call the setValue method of the XStatusIndicator as often as possible to enable reschedule

üst 127c3ef4
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ProgressBarHelper.cxx,v $ * $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 * 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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment