diff options
author | David Tardon <dtardon@redhat.com> | 2014-10-16 15:30:32 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-10-16 17:44:44 +0200 |
commit | 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e (patch) | |
tree | 80c42b34da7e7ee05843b572f7311b3c230de9dd /sc/source/ui/view/output.cxx | |
parent | add test files for new formats in libmwaw (diff) | |
download | core-582ef22d3e8e30ffd58f092d37ffda30bd07bd9e.tar.gz core-582ef22d3e8e30ffd58f092d37ffda30bd07bd9e.zip |
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 'sc/source/ui/view/output.cxx')
-rw-r--r-- | sc/source/ui/view/output.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 617288e69ef2..09b6cca4c03b 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -145,7 +145,7 @@ ScOutputData::ScOutputData( OutputDevice* pNewDev, ScOutputType eNewType, SCTAB nNewTab, long nNewScrX, long nNewScrY, SCCOL nNewX1, SCROW nNewY1, SCCOL nNewX2, SCROW nNewY2, double nPixelPerTwipsX, double nPixelPerTwipsY, - const boost::rational<long>* pZoomX, const boost::rational<long>* pZoomY ) : + const boost::rational<sal_Int64>* pZoomX, const boost::rational<sal_Int64>* pZoomY ) : mpDev( pNewDev ), mpRefDevice( pNewDev ), // default is output device pFmtDevice( pNewDev ), // default is output device @@ -193,11 +193,11 @@ ScOutputData::ScOutputData( OutputDevice* pNewDev, ScOutputType eNewType, if (pZoomX) aZoomX = *pZoomX; else - aZoomX = boost::rational<long>(1,1); + aZoomX = boost::rational<sal_Int64>(1,1); if (pZoomY) aZoomY = *pZoomY; else - aZoomY = boost::rational<long>(1,1); + aZoomY = boost::rational<sal_Int64>(1,1); nVisX1 = nX1; nVisY1 = nY1; |