summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-11-08 08:52:18 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-11-08 08:54:45 +0200
commitb261177e5d81a662c76d523e447d80c108ebdf5b (patch)
tree0d400a5a65393d9112072d68737111af2bebd1e0 /writerfilter
parent0ff42915684fe773e58f5c77ce3c78470123412b (diff)
round() is not portable
Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index 0038da2593d7..085370024f23 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -478,7 +478,7 @@ void DomainMapperTableManager::endOfRowAction()
}while( --nGridCount );
sal_Int16 nRelPos =
- sal::static_int_cast< sal_Int16 >( round( fGridWidth * nFullWidthRelative / nFullWidth ) );
+ sal::static_int_cast< sal_Int16 >( floor( fGridWidth * nFullWidthRelative / nFullWidth + 0.5 ) );
pSeparators[nBorder].Position = nRelPos + nLastRelPos;
pSeparators[nBorder].IsVisible = sal_True;