Apache OpenOffice (AOO) Bugzilla – Issue 96111
sw: ambiguous && ||
Last modified: 2013-08-07 14:43:11 UTC
This one looks definitely wrong. in sw/source/ui/docvw/edtwin.cxx we have if(pACorr && ( pACorr->IsAutoCorrFlag( ChgQuotes ) && ('\"' == aCh ))|| ( pACorr->IsAutoCorrFlag( ChgSglQuotes ) && ( '\'' == aCh))) which means if( (pACorr && ( pACorr->IsAutoCorrFlag( ChgQuotes ) && ('\"' == aCh ))) || ( pACorr->IsAutoCorrFlag( ChgSglQuotes ) && ( '\'' == aCh))) i.e. if pACorr is null we will try and execute pACorr->IsAutoCorrFlag( ChgSglQuotes ) I suspect we mean if ( pACorr && ( (pACorr->IsAutoCorrFlag(ChgQuotes) && ('\"' == aCh)) || (pACorr->IsAutoCorrFlag(ChgSglQuotes) && ('\'' == aCh)) ) ) patch attached to do that
Created attachment 57896 [details] suspicious code
Ok, ok, you're right. Fixed in sw31bf02.
Verified in CWS sw31bf02.
closed, seen in m44