summaryrefslogtreecommitdiff
path: root/sc/inc/rowheightcontext.hxx
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 /sc/inc/rowheightcontext.hxx
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 'sc/inc/rowheightcontext.hxx')
-rw-r--r--sc/inc/rowheightcontext.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/rowheightcontext.hxx b/sc/inc/rowheightcontext.hxx
index 0db012c4a263..816c53d0c88a 100644
--- a/sc/inc/rowheightcontext.hxx
+++ b/sc/inc/rowheightcontext.hxx
@@ -22,8 +22,8 @@ class SC_DLLPUBLIC RowHeightContext
{
double mfPPTX;
double mfPPTY;
- boost::rational<long> maZoomX;
- boost::rational<long> maZoomY;
+ boost::rational<sal_Int64> maZoomX;
+ boost::rational<sal_Int64> maZoomY;
OutputDevice* mpOutDev;
sal_uInt16 mnExtraHeight;
@@ -31,15 +31,15 @@ class SC_DLLPUBLIC RowHeightContext
public:
RowHeightContext(
- double fPPTX, double fPPTY, const boost::rational<long>& rZoomX, const boost::rational<long>& rZoomY,
+ double fPPTX, double fPPTY, const boost::rational<sal_Int64>& rZoomX, const boost::rational<sal_Int64>& rZoomY,
OutputDevice* pOutDev );
~RowHeightContext();
double getPPTX() const { return mfPPTX;}
double getPPTY() const { return mfPPTY;}
- const boost::rational<long>& getZoomX() const { return maZoomX;}
- const boost::rational<long>& getZoomY() const { return maZoomY;}
+ const boost::rational<sal_Int64>& getZoomX() const { return maZoomX;}
+ const boost::rational<sal_Int64>& getZoomY() const { return maZoomY;}
OutputDevice* getOutputDevice() { return mpOutDev;}