-
Notifications
You must be signed in to change notification settings - Fork 538
Description
In an ODP file with slide notes, some shapes are missing their styles or have wrong styles applied. Here's why:
When content.xml gets written, the Writer first outputs all the styles. For each shape, $this->shapeId is incremented and a corresponding shape style "grXX" is written. However, this pass does not count note shapes!
In a second pass, the actual document body is written, shape by shape. For each shape (including note shapes), $this->shapeId is incremented and style "grXX" (if applicable) is referenced. Since the note shapes are counted here, starting from the first slide with notes, the shapeIds will be out of sync with those used in the first pass. This leads to wrong or missing styles. If no style is found, LO will apply an (ugly) default style to the shape.
I guess the solution would be to include slide note shapes in the first pass as well. If they're RichText, probably a style should be written for them anyway?