Apache OpenOffice (AOO) Bugzilla – Issue 113329
sw: && || ambiguity in frmtool.cxx
Last modified: 2017-05-20 10:22:34 UTC
in frmtool.cxx we have... if( pSct && ( pFtnFrm && !pSct->IsInFtn() ) || pUpper->IsCellFrm() ) pSct = NULL; by precedence thats... if( (pSct && (pFtnFrm && !pSct->IsInFtn())) || pUpper->IsCellFrm() ) seeing as the target is to set pSct to NULL, then there's no point doing it if its already NULL so this likely should be... if( pSct && ((pFtnFrm && !pSct->IsInFtn()) || pUpper->IsCellFrm()) ) pSct = NULL;
Created attachment 70754 [details] version 1, keep logic silence gcc warnings
Created attachment 70755 [details] version 2, change logic, possibly what was intended
mine
doesn't seem to matter much in this case, the result will be the same... but i prefer version 2. fixed in cws sw34bf01 http://hg.services.openoffice.org/hg/cws/sw34bf01/rev/324ae7d552ae
please verify
verified