From 261d422d9e0dc4d36ddfa43180e63286cbb89bf4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 16 Feb 2018 08:32:14 +0200 Subject: Revert "loplugin:changetoolsgen in oox,reportdesign" and reapply.. the plugin because I (a) forgot to insert parentheses which changes the meaning of some expressions and (b) I now use the AdjustFoo calls when changing unary operations, which reads much better This reverts commit 457220bc2c0142c5b6f4135cb688ccfc99fec792. Change-Id: I2c6b1092c8bfa4fa14acbc7445f546d43cb2a86e Reviewed-on: https://gerrit.libreoffice.org/49833 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/export/shapes.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oox') diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 72f2eac304ba..8f374c0d54d1 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -386,9 +386,9 @@ awt::Size ShapeExport::MapSize( const awt::Size& rSize ) const Size aRetSize( OutputDevice::LogicToLogic( Size( rSize.Width, rSize.Height ), maMapModeSrc, maMapModeDest ) ); if ( !aRetSize.Width() ) - aRetSize.setWidth( ++aRetSize.Width() ); + aRetSize.AdjustWidth( 1 ); if ( !aRetSize.Height() ) - aRetSize.setHeight( ++aRetSize.Height() ); + aRetSize.AdjustHeight( 1 ); return awt::Size( aRetSize.Width(), aRetSize.Height() ); } -- cgit