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

Bug #641175 reported by D
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Critical
libreoffice (Ubuntu)
Fix Released
Medium
Björn Michaelsen
Nominated for Lucid by D
Nominated for Maverick by D
openoffice.org (Ubuntu)
Won't Fix
Undecided
Unassigned
Nominated for Lucid by D
Nominated for Maverick by D

Bug Description

Binary package hint: openoffice.org
Binary package hint: libreoffice

1)
LibreOffice:
lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

OOo:
Lucid

2)
LibreOffice:
apt-cache policy libreoffice-impress
libreoffice-impress:
  Installed: 1:3.3.1-1ubuntu4
  Candidate: 1:3.3.1-1ubuntu4
  Version table:
 *** 1:3.3.1-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

OOo:
OO 3.2.0 Impress (1:3.2.0-7ubuntu4.1)

3)
For LibreOffice perform at the Terminal:

loimpress -nologo

click Next button -> Next Button -> Create Button -> View -> Master -> Slide
Master -> Format -> Page... -> In Page Setup window (notice Orientation has
highlighted Landscape radio button) Width 5.51" -> Height 2.68" -> Ok button
-> In Master View window Close Master View -> Insert -> Slide -> File -> Save
As... -> Name example -> File Type ODF Presentation odp -> Save button -> File
-> Exit -> Perform at the Terminal:

loimpress -nologo example.odp

Insert -> Slide
The new page has the same configuration as the Master Slide.

For OOo what is expected to happen is when following the steps:
1. Open a new presentation.
2. View Master Slide
3. Change Page Size to Custom: 14,80 cm x 10,00 cm landscape.
4. The lower text box now has a size that fits inside the page. (e.g. 14,00 x 6,80 cm)
5. Exit Master Slide View.
6. Create a new page. The new page has a box size that fits the page. (the same as above)
7. Save and Close the file.
8. Reopen the file.
9. Create a new page. The new page has the same configuration as the Master Slide.

4) What happens instead for OOo & LibreOffice is now the box extends downwards vertically below the Master Slide settings.

WORKAROUND: Reset the master page box size every time after reopening the file.

Revision history for this message
D (dj-lp) wrote :
Revision history for this message
D (dj-lp) wrote :

Actually the whole thing works without a master Slide as well:

1. Open a new presentation.
2. Change the page layout to smaller (14,8 x 10 cm).
3. Save the file and reopen.
4. Create new page.
5. The new page now has a text box twice the size of the page heigth.

Revision history for this message
D (dj-lp) wrote :

It works also with e.g. C6 envelope. Save, Reopen, Create a new slide and the box is much too large.

Revision history for this message
D (dj-lp) wrote :

Even easier:
Open a new file. Change page size to C6 Envelope. Save. Close. Open. Change Layout. The Boxes are very high.

Revision history for this message
D (dj-lp) wrote :
Revision history for this message
D (dj-lp) wrote :

The problem is the same in version 1:3.2.1-6ubuntu1 from maverick.

Revision history for this message
Nikolay Shtinkov (n-shtinkov) wrote :

Confirmed for the following version (Mandriva 2010.2, 64-bit)

OpenOffice.org 3.2.1
OOO320m15 (Build:9492)
3.2.1.4

Another way to reproduce is to change step 3 of the above to

3. Change the size of the "Object Area for Auto Layouts" text box.

When the file is reopened (after save and close), the master slide has forgotten the change and all new slides will be created with the old size of the box.

This is very annoying since for any custom layout, you have to modify the master each time a file is opened if you want to create new slides.

Changed in openoffice.org (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

D, thank you for reporting this bug and helping make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 641175
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

This is unreproducible in Ubuntu 10.10 LibreOffice Impress. Does this work for you?

sudo add-apt-repository ppa:libreoffice/ppa && sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install libreoffice-impress

lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

apt-cache policy libreoffice-impress
libreoffice-impress:
  Installed: 1:3.3.0-1maverick1
  Candidate: 1:3.3.0-1maverick1
  Version table:
 *** 1:3.3.0-1maverick1 0
        500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Changed in openoffice.org (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
D (dj-lp) wrote :

It makes no sense to send the apport data because the bug is confirmed to exist in a vanilla setup.

If I install libreoffice, will this affect my existing openoffice 3.2 installation? Because I have a production system set up here and I can't risk that. thanks

Revision history for this message
D (dj-lp) wrote :

ok I tried and I would have to remove openoffice. that's not an option. but you can test this yourself in libreoffice. The instructions are easy and work always.

penalvch (penalvch)
description: updated
tags: added: lo33
summary: - OpenOffice Impress disregards Master Slide after Saving
+ Impress disregards Master Slide settings saving to .odp
Changed in openoffice.org (Ubuntu):
status: Incomplete → New
Revision history for this message
In , penalvch (penalvch) wrote :

Downstream bug may be found at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/641175

1) lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

2) apt-cache policy libreoffice-impress
libreoffice-impress:
  Installed: 1:3.3.1-1ubuntu4
  Candidate: 1:3.3.1-1ubuntu4
  Version table:
 *** 1:3.3.1-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen is when one performs at the Terminal:

loimpress -nologo

click Next button -> Next Button -> Create Button -> View -> Master -> Slide
Master -> Format -> Page... -> In Page Setup window (notice Orientation has
highlighted Landscape radio button) Width 5.51" -> Height 2.68" -> Ok button
-> In Master View window Close Master View -> Insert -> Slide -> File -> Save
As... -> Name example -> File Type ODF Presentation odp -> Save button -> File
-> Exit -> Perform at the Terminal:

loimpress -nologo example.odp

Insert -> Slide
The new page has the same configuration as the Master Slide.

4) What happens instead is now the box extends downwards vertically below the Master Slide settings.

Changed in df-libreoffice:
importance: Unknown → Low
status: Unknown → Confirmed
Revision history for this message
In , Tlillqvist-k (tlillqvist-k) wrote :

For Thorsten?

Revision history for this message
In , L-bugs-freedesktop-org (l-bugs-freedesktop-org) wrote :

Also having this issue with lo3.3.1 on ubuntu 32 bit.
When closing/reopening the document the master page content zone kept setting itself to adjust with text.
It made master slide unusable in my use case, so I had to install oo3.3 instead to continue working.

Revision history for this message
penalvch (penalvch) wrote : Re: Impress disregards Master Slide settings saving to .odp

D, since this bug has enough information provided for a developer to begin work, I'm going to mark it as Triaged and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
In , L-bugs-freedesktop-org (l-bugs-freedesktop-org) wrote :

Could anyone have a look as this issue?
This prevents me from using libreoffice, so still on oo3.3.
I'm setting Importance to Normal instead of minor: loosing settings when saving is not a minor issue, data is lost!
Thanks

Revision history for this message
In , penalvch (penalvch) wrote :

fmjrey, this issue is currently assigned to <email address hidden>. If you want to collaborate on development feel free to shoot an E-Mail. Issue confirmed in Ubuntu 10.10, LibreOffice Impress 3.3.2.

lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

apt-cache policy libreoffice-impress
libreoffice-impress:
  Installed: 1:3.3.2-1ubuntu2~maverick1
  Candidate: 1:3.3.2-1ubuntu2~maverick1
  Version table:
 *** 1:3.3.2-1ubuntu2~maverick1 0
        500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Changed in df-libreoffice:
importance: Low → Medium
penalvch (penalvch)
summary: - Impress disregards Master Slide settings saving to .odp
+ [Upstream] Impress disregards Master Slide settings saving to .odp
Revision history for this message
In , L-bugs-freedesktop-org (l-bugs-freedesktop-org) wrote :

Changing from medium normal to high major because this bug:
- causes data loss: settings from master slide are not saved
- causes the loss of a major functionality: master slide cannot be changed
Would be great if this bug could get the attention it deserves.
Thanks.

Changed in df-libreoffice:
importance: Medium → High
Changed in openoffice.org (Ubuntu):
status: New → Won't Fix
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : migrating packaging from OpenOffice.org to Libreoffice

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

Revision history for this message
In , voltaic (voltaic) wrote :

I'd like to confirm that this bug is still present in 3.4.3. I cannot alter existing master slides at all. This makes it cumbersone to create new Impress presentations from scratch.

Revision history for this message
In , Dbraunwarth-j (dbraunwarth-j) wrote :

I have got nearly the same bug on my system (Fedora 16 x86_64) but the box is not getting too big but too small.
Changing system to all
Changing version to LibO 3.4.5 release.

Thank you

Revision history for this message
In , voltaic (voltaic) wrote :

The issue persists in LibreOffice 3.6.2.2.

Please note that there have been several duplicate reports in recent months. I don't have permission to mark them as duplicates, so I will list them here:

Bug 55720, 53340, and 54005.

I will note this on the duplicated reports, but ultimately someone should merge the above.

Revision history for this message
In , penalvch (penalvch) wrote :

voltaic, please do not toggle the Version. For more on this, please see http://wiki.documentfoundation.org/BugReport_Details#Version .

Revision history for this message
In , Joren-libreoffice (joren-libreoffice) wrote :

*** Bug 55720 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Joren-libreoffice (joren-libreoffice) wrote :

*** Bug 54005 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Joren-libreoffice (joren-libreoffice) wrote :

*** Bug 53340 has been marked as a duplicate of this bug. ***

Revision history for this message
In , penalvch (penalvch) wrote :

Reproducible in:
Microsoft Windows Vista Business x86 6.0.6002 Service Pack 2 Build 6002
Version 4.0.0.1 (Build ID: 527dba6f6e0cfbbc71bd6e7b88a52699bb48799)

Revision history for this message
In , Bugquestcontri (bugquestcontri) wrote :

Just made a test. The problem reported in
https://bugs.freedesktop.org/show_bug.cgi?id=55720
still exists in LibO Version 3.6.5.2 (Build ID: 5b93205) on XP/SP3.

Revision history for this message
In , Jmadero-dev (jmadero-dev) wrote :

As this bug has been confirmed to be in LibreOffice 4 as well, going to move forward with making this a MAB3.6.

3.5 is at end of life in its cycle and therefore will get no more updates. We are trying to close the 3.5 most annoying meta bug.

In general I wouldn't agree that this is a MAB as it just doesn't affect enough people BUT since it's been on the list for nearly a year I'll go ahead and push it forward to the 3.6 MAB list. We'll try to push this one forward ASAP.

Thanks for your patience, apologies it's taken so long

Revision history for this message
In , Bugquestcontri (bugquestcontri) wrote :

Thanks for pushing it forward. This bug is always cumbersome because it slows people down.

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

I will investigate the bug.

Revision history for this message
In , Jr-n (jr-n) wrote :

It seems, that the changes in the master slide are stored correctly in the styles.xml, but they are not visible after saving and reopening the file.

Revision history for this message
In , Jr-n (jr-n) wrote :

*** Bug 57152 has been marked as a duplicate of this bug. ***

Changed in df-libreoffice:
status: Confirmed → In Progress
Revision history for this message
In , Michael Meeks (michael-meeks) wrote :

I had a recollection that you did some master-page fixing recently David - was this a duplicate ? :-)

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

Are the fix already pushed to master? With a build from monday I can still reproduce the bug.

Revision history for this message
In , Jmadero-dev (jmadero-dev) wrote :

As far as I can tell there is no fix yet. You'll see an automated message when the fix is committed to master

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

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

My knowledge about libreoffice is too limited to fix this bug. Every approach I tried break some other stuff, so feel free to grab this bug.

Revision history for this message
In , Bfo-bugmail (bfo-bugmail) wrote :

Joel: Assumming that nobody is actually working on it or has any
plans to do it soon (see comment 24) are you willing to change status of this bug back to NEW?

Changed in df-libreoffice:
status: In Progress → Confirmed
Revision history for this message
In , Barta-c (barta-c) wrote :

I cannot test to reproduce this bug. So I ask the original reporter if he still experience it on recent LibO versions like 4.0.4 and 4.1.0

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

The bug exists still in LibO 4.1.0.4 (tested on windows 7)

Just open a new presentation, change the slide size to A6 and save the document. Now close the document and open it again. When you now create a new slide the text box is too big. Or just look at the master slide ;)

Revision history for this message
In , Barta-c (barta-c) wrote :

@mohofmann
thanks for your confirmation.
I'm gonna move this from mab3.6 to mab4.0 since 3.6.x branch is no longer supported.

Revision history for this message
In , Jozef Mlich (xmlich02) wrote :

The bug still occurs at Libreoffice 4.1.0.3-2.fc19

Revision history for this message
In , Caolanm (caolanm) wrote :

This was triggered by http://cgit.freedesktop.org/libreoffice/core/commit/?id=aa9af08b389a106fcfb53842ac7669b208a27205 specifically the sd/source/core/stlpool.cxx rSet.Put( SdrTextAutoGrowHeightItem(FALSE) ); line which causes the xmloff to call some reset property stuff on import which causes the box to recalculate itself as mhofmann describes

Revision history for this message
In , Cno (cno) wrote :

Did some testing in 4.1.1.2:

One slide
One master slide
Change width of both text boxes is master slide.
Back to normal view.
   > changes not visible.

Create new masters slide also with different width for text boxes
Back to normal view.
Apply MasterPage2
   > changes not visible

However ... the changes do show in the preview of the master slides...

Now add a slide
   > has MasterPage2 applied
Apply first master page
   > Only one of the text boxes is changed

Now add third slide
  > both master pages can be applied there and show all changes

The funny thing is, that for the first and second slide the behaviour is still the same, as described above :D

Revision history for this message
In , Federico Kereki (fkereki) wrote :

This is still happening in the 4.1 release, both for 32- and 64-bit Intel processors.

Revision history for this message
In , Federico Kereki (fkereki) wrote :

This should be considered a really major error -- it's really hard to work with templates if your sizing isn't kept.

Revision history for this message
In , Cno (cno) wrote :

*** Bug 69108 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Caolanm (caolanm) wrote :

https://gerrit.libreoffice.org/#/c/5887/ "works for me(tm)" for the original problem of the initial report.

Changed in df-libreoffice:
importance: High → Critical
Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolan McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=14e7a290dab7fead66ef6ff7f94c6a425d80ceb6

Resolves: fdo#34987 skip autoheight reset if it will be set to the same value

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolan McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-4-1":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=0964a73d03bf9f5b9f485ff39f97c7e7b54339b3&h=libreoffice-4-1

Resolves: fdo#34987 skip autoheight reset if it will be set to the same value

It will be available in LibreOffice 4.1.3.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Caolanm (caolanm) wrote :

Fixed in 4-1 and 4-2, proposed in gerrit for 4-0 and 4-1-2

Changed in df-libreoffice:
status: Confirmed → Fix Released
Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolan McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-4-0":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=19a9dda3ec36874d337de65364c265946c7004df&h=libreoffice-4-0

Resolves: fdo#34987 skip autoheight reset if it will be set to the same value

It will be available in LibreOffice 4.0.6.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Changed in libreoffice (Ubuntu):
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
Revision history for this message
In , sophie (gautier-sophie) wrote :

*** Bug 71223 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Bugquestcontri (bugquestcontri) wrote :

tested in 4.1.3.2 and found the bug is gone.
Thanks to all who worked on the fix!

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Fix released upstream with 4.2.0, 4.1.3 and 4.0.6. We ship newer versions, thus closing as fix released.

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.