summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 11:36:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 20:56:17 +0200
commit80f28e377db0ca04da57eed77d42f44cbdea363d (patch)
tree44268ab2601aedd6a34a9a40f943cd1f55e400ea /oox
parent5f56f07e9278e357a079cbecb5366da98e36d97f (diff)
loplugin:simplifybool in oox..sd
Change-Id: I76cbd5d3e65f0b392d713a51607f5c88dae79593 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95101 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/converterbase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/converterbase.cxx b/oox/source/drawingml/chart/converterbase.cxx
index d8f7b564904d..5a58401ae07d 100644
--- a/oox/source/drawingml/chart/converterbase.cxx
+++ b/oox/source/drawingml/chart/converterbase.cxx
@@ -401,7 +401,7 @@ void LayoutConverter::convertFromModel( const Reference< XShape >& rxShape, doub
awt::Point aShapePos(
lclCalcPosition( aChartSize.Width, mrModel.mfX, mrModel.mnXMode ),
lclCalcPosition( aChartSize.Height, mrModel.mfY, mrModel.mnYMode ) );
- if( !((aShapePos.X >= 0) && (aShapePos.Y >= 0)) )
+ if( (aShapePos.X < 0) || (aShapePos.Y < 0) )
return;
bool bPropSet = false;