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 ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/641175

Title:
  [Upstream] Impress disregards Master Slide settings saving to .odp

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/641175/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to