summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/tblrwcl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/tblrwcl.cxx')
-rw-r--r--sw/source/core/doc/tblrwcl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index f7987da558e6..7711f1a0ba7f 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -3986,9 +3986,9 @@ void SetLineHeight( SwTableLine& rLine, SwTwips nOldHeight, SwTwips nNewHeight,
else
{
// Calculate as exactly as possible
- boost::rational<long> aTmp( nMyOldH );
- aTmp *= boost::rational<long>( nNewHeight, nOldHeight );
- aTmp += boost::rational<long>( 1, 2 ); // round up if needed
+ boost::rational<sal_Int64> aTmp( nMyOldH );
+ aTmp *= boost::rational<sal_Int64>( nNewHeight, nOldHeight );
+ aTmp += boost::rational<sal_Int64>( 1, 2 ); // round up if needed
nMyNewH = boost::rational_cast<long>(aTmp);
}