Apache OpenOffice (AOO) Bugzilla – Issue 96636
dbaccess: ambiguous && ||
Last modified: 2009-02-26 13:34:55 UTC
in dbaccess/source/ui/control/FieldDescControl.cxx we have... if ( pFieldType.get() && !pFieldType->bNullable || !pFieldDescr->IsNullable() ) which by operator precedence is equal to if ( (pFieldType.get() && !pFieldType->bNullable) || !pFieldDescr->IsNullable() ) It seems likely we really mean... if ( pFieldType.get() && (!pFieldType->bNullable || !pFieldDescr->IsNullable()) ) if so then the attached patch does that
Created attachment 58336 [details] patch to use probable intention
will integrate into next possible CWS, thanks.
Looking at it again ... if ( pFieldType.get() && !pFieldType->bNullable || !pFieldDescr->IsNullable() ) Note that there are a pFieldType and a pFieldDescr, so in fact the proper patch is replacing this with something like if ( ( pFieldType.get() && !pFieldType->bNullable ) || !pFieldDescr->IsNullable() ) Committed to CWS dba31g, as revision 265120.
Oops, sorry, mis-read it to be the same variable in each term
fs->oj: please verify in CWS dba31g
Verified.
find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/ this is fixed in the current master. The current master is available at http://download.openoffice.org/680/index.html I close this issue now.