Apache OpenOffice (AOO) Bugzilla – Issue 113325
sw: && || ambiguity in calcmove.cxx/pagechg.cxx
Last modified: 2017-05-20 10:22:26 UTC
in calcmove.cxx we have... if ( bFly && WEIT_WECH == pObj->GetObjRect().Width()|| rFmt.GetFrmSize().GetWidthPercent() ) by precedence that's if ( (bFly && WEIT_WECH == pObj->GetObjRect().Width()) || rFmt.GetFrmSize().GetWidthPercent() ) is that what we want (i.e. version1 patch) ? I guess there's a small outside chance we might have intended... if ( bFly && (WEIT_WECH == pObj->GetObjRect().Width() || rFmt.GetFrmSize().GetWidthPercent()) ) ?
Created attachment 70750 [details] version 1, keep logic silence gcc warnings
Created attachment 70751 [details] version 2, change logic, small possibility that is what was intended
same WEIT_WECH usage in pagechg.cxx as well
mine
the WEIT_WECH constant is only used with writer flyframes, so variant 1 is right. fixed in cws sw34bf01 http://hg.services.openoffice.org/hg/cws/sw34bf01/rev/e0f56d62009f
d'oh
please verify
verified