diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2020-04-19 18:22:11 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2020-04-25 14:49:30 +0200 |
commit | eb2d669af61b8808d5819b16157c59d3c6c3e03b (patch) | |
tree | 504c6c46494d41d85c6ac73387b47ce305895f7b /xmloff | |
parent | 10dba26804cc0c14f74069c26112e75dacf3865b (diff) |
tdf#129898 Use layer DrawnInSlideshow in edit mode
If 'Mouse pointer as pen' is set in slideshow settings, painting in
slideshow becomes persistent. A layer DrawnInSlideshow is created
for that purpose during slideshow. But that layer was not known to
the view from where the slideshow was started.
Generating a layer had been done regardless whether such layer
already exists or not. That had produced several layers with
identical name. That may not happen, because layers are identified
by name.
Change-Id: I2ba9bad5babe5a1bba3d1fc69d028d9037d2bd47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92502
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/layerimp.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmloff/source/draw/layerimp.cxx b/xmloff/source/draw/layerimp.cxx index 65589c486e17..220f1f618d23 100644 --- a/xmloff/source/draw/layerimp.cxx +++ b/xmloff/source/draw/layerimp.cxx @@ -149,6 +149,15 @@ void SdXMLLayerContext::EndElement() if ( !msProtected.isEmpty() ) bIsLocked = (msProtected == "true"); xLayer->setPropertyValue("IsLocked", Any( bIsLocked ) ); + + // tdf#129898 repair layer "DrawnInSlideshow", which was wrongly written + // in LO 6.2 to 6.4. It should always have ODF defaults. + if (msName == "DrawnInSlideshow") + { + xLayer->setPropertyValue("IsVisible", Any(true)); + xLayer->setPropertyValue("IsPrintable", Any(true)); + xLayer->setPropertyValue("IsLocked", Any(false)); + } } } catch( Exception& ) |