Kaydet (Commit) 2b08019e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242970 Result is not floating-point

Change-Id: Icd0b04a2b8d9250418dfec95668fa6c496e45e5e
üst 9aba60c0
...@@ -2822,9 +2822,9 @@ void ToolbarLayoutManager::implts_calcDockingPosSize( ...@@ -2822,9 +2822,9 @@ void ToolbarLayoutManager::implts_calcDockingPosSize(
sal_Int32 nOffsetX( 0 ); sal_Int32 nOffsetX( 0 );
sal_Int32 nOffsetY( 0 ); sal_Int32 nOffsetY( 0 );
if ( bHorizontalDockArea ) if ( bHorizontalDockArea )
nOffsetY = sal_Int32( floor( aRowColumnRect.getHeight() / 2 + 0.5 )); nOffsetY = sal_Int32( floor( aRowColumnRect.getHeight() / 2.0 + 0.5 ));
else else
nOffsetX = sal_Int32( floor( aRowColumnRect.getWidth() / 2 + 0.5 )); nOffsetX = sal_Int32( floor( aRowColumnRect.getWidth() / 2.0 + 0.5 ));
if ( rDockingOperation == DOCKOP_BEFORE_COLROW ) if ( rDockingOperation == DOCKOP_BEFORE_COLROW )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment