Apache OpenOffice (AOO) Bugzilla – Issue 113314
sw: && || ambiguity in frmpage.cxx
Last modified: 2017-05-20 10:21:59 UTC
we have... if ((bNew && !bFormat) || (bValueModified || bCheckChanged) && bLegalValue) which by precedence becomes if ((bNew && !bFormat) || ((bValueModified || bCheckChanged) && bLegalValue)) which looks a little suspicious given the "bLegalValue" which is derived from aWidthED and aHeightED and code that is being protected goes on to use aWidthED/aHeightED, so it might have been intended as... if (((bNew && !bFormat) || (bValueModified || bCheckChanged)) && bLegalValue)
Created attachment 70738 [details] version 1, keep logic silence gcc warnings
Created attachment 70739 [details] version 2, change logic, small possibility that is what was intended
.
we don't really know which of the two is right. but i guess the bNew && !bFormat test probably means that something should be initialized in any case. so i've committed version 1. fixed in cws sw34bf01 http://hg.services.openoffice.org/hg/cws/sw34bf01/rev/6796726c6e0c
please verify
verified