Download it now!
Bug 88073 - FORMATTING: Drawing Object Styles lost after template update
Summary: FORMATTING: Drawing Object Styles lost after template update
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2015-01-05 22:00 UTC by Sean Carlos
Modified: 2020-10-22 12:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Carlos 2015-01-05 22:00:43 UTC
In a presentation accepting changes from an updated template (at file open) causes the "Drawing Object Styles" in the presentation to revert to the LO defaults, rather than those in the underlying template. This results in formating loss assuming these styles from the template were not already the LO defaults.  The separate "Presentation" Styles work as expected.  The problem is not new.

Steps to reproduce

1. Create a new presentation

2. Modify the "Default" Drawing Object Style in the slide master. (View -> Slide Master -> Master; F11 to view styles and formatting, click top left icon in  "Drawing Object Styles" pane, right click on "Default" to modify the style.  

As an example, change the font.  Change the area color.

3. Save the presentation as a new template: File -> Templates -> Save as template

4. Create, save and close a new presentation based on this template, any data will do.  Note the "Default" Drawing Object styles are inherited from the template. 

5. Edit / modify the underlying template, any change will do. Save and close.

6. Open the test presentation based on the template.  Accept the "template has been modified, update styles" prompt.  Review the "Default" drawing styles attributes.  They're no longer those of the template, they've reverted back to the LO defaults.

I've marked this as "major" in severity as this is a type of data loss. The user needs to understand why their formatting has been lost and manually redefine each impacted style, a task easier said than done.  I suspect a work around would be to import the slides into a new presentation based on the template, but that would result in the loss of comments, a bug reported awhile back.
Comment 1 Pierre C 2015-01-06 07:35:20 UTC
It this bug

https://bugs.freedesktop.org/show_bug.cgi?id=83569

the same problem ?
Comment 2 Sean Carlos 2015-01-06 10:55:57 UTC
Thanks for seeing this Pierre! Our reports are most likely the same underlying issue (style formatting problems related to applying an updated template to an existing presentation). although we describe the problem a bit differently.

I'm not exactly sure from the detail in your report which styles (standard, custom) are overwritten at what level (slide master? individual slide). I would stress (and perhaps the solution is to add these points to your report and mark this as a duplicate):

- the bug impacts the standard Drawing Object styles personalized in a template master slide

- any template change - not necessarily to a style - will cause the standard drawing object styles in dependent presentations to revert back to the LibreOffice defaults, ignoring what is defined / personalized in the template master slide - thus overwriting the Drawing Object styles the template previously provided the presentation.

In a quick test I also note that does seem that personalizations applied at the slide level (not the template nor master slide) are not changed.

I did not verify what happens to custom Drawing Object Styles which can be defined in a template.
Comment 3 Pierre C 2015-01-06 21:35:56 UTC
Hi Sean Carlos
In my tests, I found that all LO version (from 3.x) were impacted. I discover this problem, when for the first time, I tried to use impress template inherit feature. 
Did you use this feature before ?
Comment 4 Buovjaga 2015-01-15 17:11:12 UTC
(In reply to Sean Carlos from comment #0)
> 5. Edit / modify the underlying template, any change will do. Save and close.
> 
> 6. Open the test presentation based on the template.  Accept the "template
> has been modified, update styles" prompt.  Review the "Default" drawing
> styles attributes.  They're no longer those of the template, they've
> reverted back to the LO defaults.

How do you save the template? I just saved as template, chose same name, overwrote. Then when I opened my presentation, it didn't prompt to update styles and they had not changed (I changed the area color).

Also, what operating system are you using?

Change back to UNCONFIRMED after providing the information.

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: b3b4bbaf6cbd2226b659fea7d6ae473ccf84e9dd
TinderBox: Win-x86@39, Branch:master, Time: 2015-01-12_06:13:44
Comment 5 Sean Carlos 2015-01-15 18:24:40 UTC
OS: Linux

If you don't get the overwrite option, something is wrong - most likely the template is no longer associated with your presentation.
Comment 6 Buovjaga 2015-01-15 18:45:24 UTC
(In reply to Sean Carlos from comment #5)
> OS: Linux
> 
> If you don't get the overwrite option, something is wrong - most likely the
> template is no longer associated with your presentation.

But what Linux distro / version?

I tried on Ubuntu, but it doesn't ask to update styles either.

Ubuntu 14.10 64-bit Version: 4.5.0.0.alpha0+
Build ID: 7201fa0dddd7dd0352f69fd2b2b64efcb361ccad
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-01-11_23:28:55
Comment 7 Sean Carlos 2015-01-15 18:57:49 UTC
The bug is old, it can be verified using the latest LO official version, I'm using the latest LO on Fedora but I really doubt that is relevant.

If you are not seeing the templated has been updated message, then you have a different problem (you should see it) I suspect that either your presentation doesn't have an associated template or the current template location isn't the location known to the presentation.
Comment 8 Buovjaga 2015-01-15 19:25:55 UTC
(In reply to Sean Carlos from comment #7)
> If you are not seeing the templated has been updated message, then you have
> a different problem (you should see it) I suspect that either your
> presentation doesn't have an associated template or the current template
> location isn't the location known to the presentation.

Agh, it was because in 4.5 alpha there is not an edit button for templates and I was unknowingly opening a new presentation based on the template by double clicking it.
With 4.3.3 I can reproduce.
I could also repro with 3.3.0.

Ubuntu 14.10 64-bit
Version: 4.3.3.2
Build ID: 430m0(Build:2)

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 9 QA Administrators 2016-01-17 20:05:10 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2017-03-06 14:36:26 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2019-12-14 03:40:58 UTC Comment hidden (obsolete)
Comment 12 Jorge Juan 2020-10-22 12:59:08 UTC
This bug is still there in LO 6.4.6. It really limits the usefulness of using a single template for a set of presentations.

It affects changes to standard object styles, not user-defined styles.

System info
-----------

Ubuntu 20.04.1 standard installation

$ loimpress --version
LibreOffice 6.4.6.2 40(Build:2)

About dialog:

Versión: 6.4.6.2
Id. de compilación: 1:6.4.6-0ubuntu0.20.04.1
Subprocs. CPU: 8; SO: Linux 5.4; Repres. IU: predet.; VCL: gtk3; 
Configuración regional: es-ES (es_ES.UTF-8); Idioma de IU: es-ES
Calc: threaded

How to reproduce
----------------

1. Open impress

2. Create a rectangle.

3. Open the styles dialog and apply style "Default" (even if it is the
   assigned style already).

4. Open style Default properties and note that some of them are:

   Line colour: #3465A4
   Line width: 0,00cm
   Area colour: 729fcf
   Font size: 18pt

5. Save the file as template "bug" and close Impress.

6. Open Impress again. Create a new file from the bug template. Check that
   the properties of the Default style are like above. Save the file. Close
   Impress.
   
7. Open Impress again, edit the template and change some properties of
   style Default:
   
   Line colour: black
   Line width: 0,04cm
   Area colour: black
   Font size: 24pt
   
8. Save the template and close Impress

9. Open the file created from the template. Impress will offer to update
   the styles with the changes in the template. Accept.
   
10. Check the properties in style Default:

    Line colour: #3465A4
    Line width: 0,00cm
    Area colour: 729fcf
    Font size: 18pt
    
    Expected result: values set in the template in step 7.