Comment 36 for bug 641175

Revision history for this message
In , Borim (borim) wrote :

The cause for this bug lays in following method (xmloff/source/draw/ximpstyl.cxx):
void SdXMLMasterPageContext::EndElement()

It gets called when the XML element "style:master-page" in styles.xml is closed. That means that the master page is completely parsed. In the EndElement method ((SdXMLStylesContext*)pContext)->SetMasterPageStyles(*this); is used to set all default styles for the master page. The problem is that all user modifications are already applied and are overwritten with this call.

A near idea is to set the default styles when creating the master page and than apply all customizations. So I moved the SetMasterPageStyles call to the constructor of the SdXMLMasterPageContext class (entering of the XML element "style:master-page"). This solves the problem with the size of the outline object, but it breaks the font. The size of the font used in the master page are not set correctly.

My knowledge about libreoffice is too limited, to distinguish if I fall from one bug into another one, or if this behaviour is reasonable.

Any hints/feedback how to handle this bug is welcome ;)