Apache OpenOffice (AOO) Bugzilla – Issue 80067
warning: comparison with string literal in binfilters
Last modified: 2007-09-20 10:40:49 UTC
I have got the following warnings in the binfilter module in src680_m222: --- cut --- /usr/src/packages/BUILD/ooo-build-src680-m221d/build/src680-m222/binfilter/bf_svx/source/svdraw/svx_svdobj.cxx:2892: warning: comparison with string literal results in unspecified behaviour /usr/src/packages/BUILD/ooo-build-src680-m221d/build/src680-m222/binfilter/bf_svx/source/svdraw/svx_svdobj.cxx:2892: warning: comparison with string literal results in unspecified behaviour --- cut --- The code is really broken. I'll attach a possible fix. I am not sure if the test for NULL pointer is needed but it seems so...
Created attachment 47105 [details] Proposed fix.
@ as: Something from your playground?
The NULL pointer test isn't necessary but it doesn't hurt. :-) Thanks for the patch. As this is a regression I will try to get it fixed in 2.3.
Created attachment 47678 [details] Impress 5.0 sample document
As the wrong string comparison damaged an old fix for an old problem I attached the original sample document that now is imported wrongly. Load the attached document and go to the slide "architektur". You will recognize at least one wrongly positioned element immediately. The fix should correct that.
added keyword "regression"
please verify
CGU: Verified in cws binfilterregression.
CGU: Integrated in src680m228 and oog680m5