diff options
author | Sascha Ballach <sab@openoffice.org> | 2000-11-16 17:16:51 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2000-11-16 17:16:51 +0000 |
commit | 6fb28a5a2b00e6219ef1a003c3ec7ec716e89909 (patch) | |
tree | 8a60c78e9b4f0170055fd994d6a0ee7bc1272236 /xmloff/source | |
parent | ca72e97d6af184525f4f3d31a7c872ba943afffb (diff) |
use double instead of sal_Int32
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/ProgressBarHelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx index 871c1cdfe51b..03f24c5e3da0 100644 --- a/xmloff/source/core/ProgressBarHelper.cxx +++ b/xmloff/source/core/ProgressBarHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ProgressBarHelper.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: sab $ $Date: 2000-11-10 18:12:55 $ + * last change: $Author: sab $ $Date: 2000-11-16 18:16:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -112,9 +112,9 @@ void ProgressBarHelper::SetValue(sal_Int32 nValue) { if (xStatusIndicator.is()) { -// sal_Int32 nNewValue = (((100 / nReference) * nValue) * nProgressBarRange) / 100; - sal_Int32 nNewValue = (nValue * nProgressBarRange) / nReference; - xStatusIndicator->setValue(nNewValue); + double fValue(nValue); + double fNewValue = (fValue * nProgressBarRange) / nReference; + xStatusIndicator->setValue((sal_Int32)fNewValue); } } |