summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objembed.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-10-16 15:30:32 +0200
committerDavid Tardon <dtardon@redhat.com>2014-10-16 17:44:44 +0200
commit582ef22d3e8e30ffd58f092d37ffda30bd07bd9e (patch)
tree80c42b34da7e7ee05843b572f7311b3c230de9dd /sfx2/source/doc/objembed.cxx
parentada4862afc3227b04c12960ded761db24f61257e (diff)
fdo#84854 it seems long is not enough on 32 bit
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
Diffstat (limited to 'sfx2/source/doc/objembed.cxx')
-rw-r--r--sfx2/source/doc/objembed.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx
index d491b702f9d4..9f6f9c175995 100644
--- a/sfx2/source/doc/objembed.cxx
+++ b/sfx2/source/doc/objembed.cxx
@@ -180,8 +180,8 @@ void SfxObjectShell::DoDraw( OutputDevice* pDev,
aSize = pDev->LogicToLogic( aSize, &aWilliMode, &aMod );
if( aSize.Width() && aSize.Height() )
{
- boost::rational<long> aXF( rSize.Width(), aSize.Width() );
- boost::rational<long> aYF( rSize.Height(), aSize.Height() );
+ boost::rational<sal_Int64> aXF( rSize.Width(), aSize.Width() );
+ boost::rational<sal_Int64> aYF( rSize.Height(), aSize.Height() );
DoDraw_Impl( pDev, rObjPos, aXF, aYF, rSetup, nAspect );
}
@@ -190,8 +190,8 @@ void SfxObjectShell::DoDraw( OutputDevice* pDev,
void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev,
const Point & rViewPos,
- const boost::rational<long>& rScaleX,
- const boost::rational<long>& rScaleY,
+ const boost::rational<sal_Int64>& rScaleX,
+ const boost::rational<sal_Int64>& rScaleY,
const JobSetup & rSetup,
sal_uInt16 nAspect )
{