Apache OpenOffice (AOO) Bugzilla – Issue 96146
sdext: dodgy ambiguous && ||
Last modified: 2017-05-20 10:27:54 UTC
in sdext/source/minimizer/optimizerdialog.cxx we have if ( ( nNewStep != mnCurrentStep ) && ( nNewStep <= MAX_STEP ) || ( nNewStep >= 0 ) ) which by operator precedence means if ( (( nNewStep != mnCurrentStep ) && ( nNewStep <= MAX_STEP )) || ( nNewStep >= 0 ) (patch 1 makes this explicit) but is that really what we want, looks suspicious, perhaps we want if ( ( nNewStep != mnCurrentStep ) && (( nNewStep <= MAX_STEP ) || ( nNewStep >= 0 )) ) like patch 2 does ?
Created attachment 57931 [details] make current logic explicit
Created attachment 57932 [details] but perhaps this was what was intended
Reassigned. Please handle.
changed owner
the patch has been applied in cws[sjfixes10]