diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-17 09:20:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-17 11:55:59 +0200 |
commit | 08ec0144cc6c58ce9aeb4d573cee4fd46c484bcd (patch) | |
tree | dbc6b5c6ebab51540a329904467b109139603ee0 /filter | |
parent | a860c94f0da22065074cc36e8ddda73261641533 (diff) |
ofz#7671 Undefined-shift
Change-Id: I84c6e6a3bb97d9949e9833adf14edf6bb89fe073
Reviewed-on: https://gerrit.libreoffice.org/53018
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index fc5b87d6814c..2e842b106f78 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -1986,7 +1986,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt nCenterX = nCoordWidth / 2; if ( nCenterY == 2 ) nCenterY = nCoordHeight / 2; - if ( ( nPositionY >= 0x256 ) || ( nPositionY <= 0x107 ) ) // position y + if ((nPositionY >= 0x256 || nPositionY <= 0x107) && i < sizeof(sal_uInt32) * 8) // position y nAdjustmentsWhichNeedsToBeConverted |= ( 1U << i ); EnhancedCustomShapeParameterPair aPolar; EnhancedCustomShape2d::SetEnhancedCustomShapeHandleParameter( aPolar.First, nCenterX, bool( nFlags & SvxMSDffHandleFlags::CENTER_X_IS_SPECIAL ), true ); |