summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/core/ProgressBarHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/ProgressBarHelper.cxx b/xmloff/source/core/ProgressBarHelper.cxx
index a530970c1188..fcf2df5dd5a4 100644
--- a/xmloff/source/core/ProgressBarHelper.cxx
+++ b/xmloff/source/core/ProgressBarHelper.cxx
@@ -48,7 +48,7 @@ sal_Int32 ProgressBarHelper::ChangeReference(sal_Int32 nNewReference)
{
if (nReference)
{
- double fPercent(nNewReference / nReference);
+ double fPercent((double)nNewReference / nReference);
double fValue(nValue * fPercent);
nValue = static_cast<sal_Int32>(fValue);
nReference = nNewReference;