Apache OpenOffice (AOO) Bugzilla – Issue 119888
[From Symphony]Shape border and fill color lost if open the ppt doc via AOO
Last modified: 2012-12-26 08:02:36 UTC
Created attachment 78141 [details] sample file build: AOO3.4 r1327774 steps: 1.Launch AOO, open the attached ppt doc. 2.Check the fill color of the shapes. Defect: The gradient and solid fill color changed to white in AOO
I am investigating this issue
Root cause: Generally speaking, there are two kinds of shapes which are indicated by "Instance" section in binary file. "0" means custom shape. "1~202" mean auto shape. See more details in "MS-ODRAW.odf". The main difference for the two kinds of shape is custom shape must have "path" properties for illustrating. So two key properties "pSegmentInfo" and "pVertices" must exist for custom shape. For shapes in sample file, their instances do not belong to any kinds of above. It is mso_sptNil for which shape properties will not be set into core function. Solution: The sample shapes are a little weird. I cannot create such kind of shapes. Maybe they are obtained from some transformation(filter). So here just add a condition to handle this kind of shape. The condition is to check whether the key property "pVertices" exists or not.
Created attachment 78592 [details] Patch for this issue
Comment on attachment 78592 [details] Patch for this issue Reviewed and tested, OK.
SVN revision is 1359095.
verified on XP SP3 and Ubuntu 12.04 against trunk build 1374181
Verified on xp, Ubuntu, win7,mac,win7-64,Vista,suse,redhat, SLED 11 SP1 64 bit, all pass, close this bug