round() is not portable
Change-Id: I0f19fe7866e2ae85608e8a6380d52b66a47a98ec
This commit is contained in:
@@ -478,7 +478,7 @@ void DomainMapperTableManager::endOfRowAction()
|
|||||||
}while( --nGridCount );
|
}while( --nGridCount );
|
||||||
|
|
||||||
sal_Int16 nRelPos =
|
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].Position = nRelPos + nLastRelPos;
|
||||||
pSeparators[nBorder].IsVisible = sal_True;
|
pSeparators[nBorder].IsVisible = sal_True;
|
||||||
|
Reference in New Issue
Block a user