Apache OpenOffice (AOO) Bugzilla – Issue 96165
sd: ambiguous && ||
Last modified: 2009-05-29 10:35:39 UTC
in source/filter/eppt/pptexanimations.cxx we have if ( ( nPresetClass == (sal_uInt32)EffectPresetClass::ENTRANCE ) || ( nPresetClass == (sal_uInt32)EffectPresetClass::EXIT ) && ( nPresetId != 21 ) ) by operator precedence this expands to. if ( (nPresetClass == (sal_uInt32)EffectPresetClass::ENTRANCE) || ((nPresetClass == (sal_uInt32)EffectPresetClass::EXIT) && (nPresetId != 21)) ) is that really what we meant, if so then attachment 1 [details] makes this explicit. or did we actually mean if ( ( (nPresetClass == (sal_uInt32)EffectPresetClass::ENTRANCE) || (nPresetClass == (sal_uInt32)EffectPresetClass::EXIT) ) && (nPresetId != 21) ) which is what patch 2 would do
Created attachment 57948 [details] makes current logic explicit
Created attachment 57949 [details] changes current behaviour, but might be what was intended
KA=>SJ: could you verify this patch, please?
the second patch was meant if I am taking the opposite from the import code. I have applied the patch to cws[sjfixes10].
closing