Apache OpenOffice (AOO) Bugzilla – Issue 90931
wrong type and value for property FillGradientStepCount
Last modified: 2013-02-24 21:21:22 UTC
The UNO API property 'FillGradientStepCount' is defined as sal_Int16. The im- and export in xmloff should respect that also. sal_Int32 is used falsely so far which leads to an assertion in chart when compiled with debug. Moreover the default value in chart for the GradientStepCount is illegal as it is zero and zero is not an allowed value in the ODF 1.2 specification for the 'gradient-step-count' property.
Changed type from XML_TYPE_NUMBER to XML_TYPE_NUMBER16 in xmloff/source/draw/sdpropls.cxx. Removed wrong property default '0' in chart2/source/model/main/DataPointProperties.cxx and chart2/source/tools/FillProperties.cxx and made the property ::MAYBEVOID.
@Bjoern, please verify in CWS chart27. Thanks!
Created attachment 54726 [details] bugdoc to verify the property
the property is void by default now. After setting it becomes an Integer in Basic. Which corresponds to sal_Int16. So the change in xmloff is correct. Verified in the source code.
This issue is closed automatically and wasn't rechecked in a current version of OOo. The fixed issue should be integrated in OOo since more than half a year. If you think this issue isn't fixed in a current version (OOo 3.1), please reopen it and change the field 'Target Milestone' accordingly. If you want to download a current version of OOo => http://download.openoffice.org/index.html If you want to know more about the handling of fixed/verified issues => http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues