diff options
author | Michaël Lefèvre <lefevre00@yahoo.fr> | 2014-04-04 00:13:31 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 07:23:43 -0500 |
commit | 453ee351f32494b1f30b477069cc7a1834352377 (patch) | |
tree | 2e5fc2a57d2a2f3eb839e929cae42d7d61451e05 /canvas | |
parent | 4da62012fea1796c1fed5bb2d87a353d1be79ea5 (diff) |
fdo#43157 : clean up more OSL_POSTCOND
Change-Id: Iaca31b4e12c258b762b3d88fbad0fb08b4f1fc16
Reviewed-on: https://gerrit.libreoffice.org/8832
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/spriteredrawmanager.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/canvas/source/tools/spriteredrawmanager.cxx b/canvas/source/tools/spriteredrawmanager.cxx index ee97967068cb..7873883c276a 100644 --- a/canvas/source/tools/spriteredrawmanager.cxx +++ b/canvas/source/tools/spriteredrawmanager.cxx @@ -366,9 +366,11 @@ namespace canvas ::basegfx::B2DRectangle aTotalBounds( o_rMoveStart ); aTotalBounds.expand( o_rMoveEnd ); - OSL_POSTCOND(impIsEqualB2DRange(rUpdateArea.maTotalBounds, basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange(aTotalBounds), 0.5), + SAL_WARN_IF(!impIsEqualB2DRange(rUpdateArea.maTotalBounds, basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange(aTotalBounds), 0.5), + "canvas", "SpriteRedrawManager::isAreaUpdateScroll(): sprite area and total area mismatch"); - OSL_POSTCOND(impIsEqualB2DVector(o_rMoveStart.getRange(), o_rMoveEnd.getRange(), 0.5), + SAL_WARN_IF(!impIsEqualB2DVector(o_rMoveStart.getRange(), o_rMoveEnd.getRange(), 0.5), + "canvas", "SpriteRedrawManager::isAreaUpdateScroll(): scroll start and end area have mismatching size"); #endif |