Apache OpenOffice (AOO) Bugzilla – Issue 97538
psprint: ambiguous && ||
Last modified: 2009-02-24 14:59:09 UTC
In psprint/source/fontsubset/gsub.cxx (this code also appears in vcl as well) there is some unbracketed && || which looks dodgy i.e. if( (aFeatureIndexList[0] != nFeatureIndex) && (!std::count( aReqFeatureTagList.begin(), aReqFeatureTagList.end(), nTag)) || (!std::count( aFeatureIndexList.begin(), aFeatureIndexList.end(), nFeatureIndex) ) ) patch 1 make the implicit logic explicit, i.e. keeps things as they are, while patch 2 changes the logic to be what *might* have been meant. I can't really tell which is the correct one :-)
Created attachment 58986 [details] keep things as they are, except silence warning
Created attachment 58987 [details] change logic, but might be what was originally intended
pl->hdu: gsub.cxx is your baby, yes ?
Clarified the code to get rid of the warning in CWS vcl98. Also fixed the corresponding warning in vcl/source/glyphs/gcach_ftyp.cxx. Ceterum censeo psprint+vcl belong into one module.
@cmc or @pl: please verify in CWS vcl98 (cws/vcl98/psprint/source/fontsubset 265911 and cws/vcl98/vcl/source/glyphs 265912)
please verify in CWS vcl98
verified, looks ok to me
seen DEV300m42, OOO310_m1