Apache OpenOffice (AOO) Bugzilla – Issue 96109
sw: dubious code
Last modified: 2013-08-07 14:43:11 UTC
in sw/source/ui/uiview/viewport.cxx we have... if ( bRepeat && nCnt > 10 || (nCnt > 3 && bHAuto && bAuto && bAuto && bHAuto) ) i.e. (bHAuto && bAuto && bAuto && bHAuto) which doesn't make a lot of sense, perhaps there was intended to be a use of bVAuto in there, or maybe it just got duplicated accidentally and should simply be... if ( bRepeat && nCnt > 10 || (nCnt > 3 && bHAuto && bAuto) ) the second thing is that it's a little ambiguous if the operator precedence that will be used is truly intentional, i.e. that becomes... if ( (bRepeat && nCnt > 10) || (nCnt > 3 && bHAuto && bAuto) ) but there's a chance that the meaning might be if ( bRepeat && (nCnt > 10 || (nCnt > 3 && bHAuto && bAuto)) ) sticking some brackets around it to explicitly state the intent would be great
Fixed in CWS sw31bf02
Ready for QA ;-)
verified in cws sw31bf02
closed, integrated