Apache OpenOffice (AOO) Bugzilla – Issue 117133
New shape fill color not written in all xml formats
Last modified: 2013-01-23 08:21:00 UTC
The new fill color for shapes (Blue 9) is not exported in the document pool in sc and sw. This causes old files to be read with also blue 9 as fill color even so it should be blue 8. cl->cl: use SetPoolDefaultItem
fixed in cws impress210 Calc already had a method to add drawing layer defaults with void ScDocument::SetDrawDefaults() void ScDocument::UpdateDrawDefaults() SetDrawDefaults is called from ScDocShell::InitNew which is only called when a new document is created, not when a document is loaded. SetDrawDefaults will set bSetDrawDefaults to true and call UpdateDrawDefaults. If the drawing layer model for calc is not yet created, UpdateDrawDefaults will be called upon init of drawing layer model later. Will only put new defaults in item pool if bSetDrawDefaults is true. Added the same handling to writer + SwDoc::SetDrawDefaults() + SwDoc::UpdateDrawDefaults() and SetDrawDefaults is called from SwDocShell::InitNew. Both UpdateDrawDefaults will call new method + void SdrModel::SetDrawingLayerPoolDefaults() which actually puts the new defaults in the item pool. In sd, DrawDocShell::InitNew directly calls SdrModel::SetDrawingLayerPoolDefaults().
verified in cws, back to qa how to test: create documents in writer, calc, impress, draw with at least one shape with default formating in this cws and in an older version which didn't had blue 9 as the default color. Documents should load in same version and older version with the color they had during save.
Verified in CWS.
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
Closing resolved issue.