round() is not portable

Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec
This commit is contained in:
Tor Lillqvist
2012-11-08 08:52:18 +02:00
parent 0ff4291568
commit b261177e5d

View File

@@ -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;