diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-11-08 08:52:18 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-11-08 08:54:45 +0200 |
commit | b261177e5d81a662c76d523e447d80c108ebdf5b (patch) | |
tree | 0d400a5a65393d9112072d68737111af2bebd1e0 /writerfilter | |
parent | pyagenda: remove duplicate code (diff) | |
download | core-b261177e5d81a662c76d523e447d80c108ebdf5b.tar.gz core-b261177e5d81a662c76d523e447d80c108ebdf5b.zip |
round() is not portable
Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableManager.cxx | 2 |
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; |