summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/UnoDocumentSettings.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/unoidl/UnoDocumentSettings.cxx')
-rw-r--r--sd/source/ui/unoidl/UnoDocumentSettings.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
index 3d4703c742e3..52551a4a62b5 100644
--- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx
+++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
@@ -677,7 +677,7 @@ throw (UnknownPropertyException, PropertyVetoException,
sal_Int32 nValue = 0;
if( *pValues >>= nValue )
{
- boost::rational<long> aFract( nValue, pDoc->GetUIScale().denominator() );
+ boost::rational<sal_Int64> aFract( nValue, pDoc->GetUIScale().denominator() );
pDoc->SetUIScale( aFract );
bOk = true;
bChanged = true;
@@ -689,7 +689,7 @@ throw (UnknownPropertyException, PropertyVetoException,
sal_Int32 nValue = 0;
if( *pValues >>= nValue )
{
- boost::rational<long> aFract( pDoc->GetUIScale().numerator(), nValue );
+ boost::rational<sal_Int64> aFract( pDoc->GetUIScale().numerator(), nValue );
pDoc->SetUIScale( aFract );
bOk = true;
bChanged = true;