Apache OpenOffice (AOO) Bugzilla – Issue 96140
oox: ambiguous && ||
Last modified: 2013-08-07 15:14:30 UTC
in oox/source/xls/worksheethelper.cxx we have if( rCellData.mxCell.is() && (rCellData.mnXfId >= 0) || (rCellData.mnNumFmtId >= 0) ) which by precedence is if( (rCellData.mxCell.is() && (rCellData.mnXfId >= 0)) || (rCellData.mnNumFmtId >= 0) ) (as attachment 1 [details] makes explicit) but is that really what we want, superficially it looks like if( rCellData.mxCell.is() && ((rCellData.mnXfId >= 0) || (rCellData.mnNumFmtId >= 0) )) might have been intended ? (as attachment 2 [details] would change it to be)
Created attachment 57924 [details] makes current logic explicit
Created attachment 57925 [details] but perhaps this was what was intended
thanks for catching, the current implementation is wrong, oox.2.patch is right.
will add this in dr67, targeted for OOo 3.1
fixed in DEV300/dr67
internal code fix, verified
closed, seen DEV300_m47