Apache OpenOffice (AOO) Bugzilla – Issue 96101
svx: ambiguous && and ||
Last modified: 2010-01-23 12:50:06 UTC
X && Y || Z binds operator precedence-wise as (X && Y) || Z not X && (Y || Z) so I am a little suspicious about... svx/source/unodraw/UnoGraphicExporter.cxx where we have... if ( rSettings.mnWidth && rSettings.mnHeight && ( rSettings.mnWidth != aSizePixel.Width() ) || ( rSettings.mnHeight != aSizePixel.Height() ) ) i.e. same as if ( (rSettings.mnWidth && rSettings.mnHeight && ( rSettings.mnWidth != aSizePixel.Width() )) || ( rSettings.mnHeight != aSizePixel.Height() ) ) I suspect we mean... if ( rSettings.mnWidth && rSettings.mnHeight && ( (rSettings.mnWidth != aSizePixel.Width()) || (rSettings.mnHeight != aSizePixel.Height()) ) ) if so, patch attached will make that change
Created attachment 57885 [details] suspicious code
verifying patch
retargeted to 3.2
fixed
verified
closing