writerfilter/source/dmapper/DomainMapperTableManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b261177e5d81a662c76d523e447d80c108ebdf5b Author: Tor Lillqvist <[email protected]> Date: Thu Nov 8 08:52:18 2012 +0200 round() is not portable Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index 0038da2..0853700 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; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
