Bug 132552 - layout changed after reopen
Summary: layout changed after reopen
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-30 10:21 UTC by Ulf Zibis
Modified: 2020-05-07 17:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original DOCX file (1.50 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-04-30 10:21 UTC, Ulf Zibis
Details
Saved as ODT before editing (1.48 MB, application/vnd.oasis.opendocument.text)
2020-04-30 10:23 UTC, Ulf Zibis
Details
Edited, printed and then saved again (241.44 KB, application/vnd.oasis.opendocument.text)
2020-04-30 10:24 UTC, Ulf Zibis
Details
screen shot of edit (195.85 KB, image/png)
2020-04-30 18:05 UTC, Ulf Zibis
Details
LE 5_0 ArbeitsauftrageII.odt (264.41 KB, application/vnd.oasis.opendocument.text)
2020-04-30 19:11 UTC, Bart
Details
Edited ODT after reopen (161.27 KB, image/png)
2020-04-30 22:57 UTC, Ulf Zibis
Details
LE 5_0 ArbeitsauftrageII.png (234.25 KB, image/png)
2020-04-30 23:22 UTC, Bart
Details
screen shot marked (12.73 KB, image/png)
2020-05-01 00:08 UTC, Ulf Zibis
Details
Libreoffice63-CheckForUpdates.png (76.19 KB, image/png)
2020-05-01 00:24 UTC, Bart
Details
LXDEandLibreOfficeVersions.png (90.82 KB, image/png)
2020-05-01 00:25 UTC, Bart
Details
Reopend ODT with 6.4 after editing (32.08 KB, image/png)
2020-05-02 19:36 UTC, Ulf Zibis
Details
DOCX compared (102.58 KB, image/png)
2020-05-03 11:29 UTC, Timur
Details
DOC compared MSO LO (155.62 KB, image/png)
2020-05-04 16:05 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Zibis 2020-04-30 10:21:17 UTC
Created attachment 160121 [details]
Original DOCX file

I received a DOCX file (7 pages) and saved it as ODT.

After editing the file (removing some content to shrink it to 4 pages) I could successfully print it.

After saving and again opening it, the layout was corrupted. It had 6 pages with much free space.
Comment 1 Ulf Zibis 2020-04-30 10:23:00 UTC
Created attachment 160122 [details]
Saved as ODT before editing
Comment 2 Ulf Zibis 2020-04-30 10:24:31 UTC
Created attachment 160123 [details]
Edited, printed and then saved again
Comment 3 Ulf Zibis 2020-04-30 10:25:46 UTC
Comment on attachment 160123 [details]
Edited, printed and then saved again

After reopening again, the document had again 6 pages with muchspace.
Comment 4 Bart 2020-04-30 16:54:36 UTC
Hi Ulf,

I'd like to reproduce the result that you had and that works best if I use the LibreOffice version that you also have, or if I use a version close to yours.

If you start LibreOffice and click
   Help -> About LibreOffice
then what version do you get?

It's best if you can copy the text there and paste it here.

Also, if you let me know which parts you removed in document "LE 5_0 Arbeitsauftrage.odt", then I can better recreate the steps that you took and try to get to the same result. 

PS: 
- I'm not a developer. I submitted a few bugs/reports myself and I'm trying to confirm the bugs that other people reported here.
- Filename "LE 5_0 Arbeitsauftrage.odt" probably had a few characters more when you saved it. Because I work with Windows and Linux on one system, and because they have different rules for the characters allowed in filenames, I often remove special characters and characters with accents in filenames just before saving a file. ;-)
Comment 5 Ulf Zibis 2020-04-30 18:05:07 UTC
Created attachment 160146 [details]
screen shot of edit

(In reply to Bart from comment #4)
Hi Bart,

> then what version do you get?
> It's best if you can copy the text there and paste it here.
Version: 6.0.7.3
Build-ID: 1:6.0.7-0ubuntu0.18.04.10
CPU-Threads: 2; BS: Linux 4.15; UI-Render: Standard; VCL: gtk3; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group

> Also, if you let me know which parts you removed in document "LE 5_0 Arbeitsauftrage.odt",
> then I can better recreate the steps that you took and try to get to the same result.
- Open the attached DOCX file. It has 7 pages (paper size DIN A4).
- Delete the content of the 1st page (except page header) as shown in attached screen shot. Now 6 pages should remain, and feel free to print it, but not necessary.
- Save the document as ODT.
- Open the ODT again ... it now has 8 instead 6 pages. On the 1st page you see the first error ... the first 5 lines are outside of the frame, where they should be.

> - I'm not a developer. I submitted a few bugs/reports myself and I'm trying to confirm the bugs that other people reported here.
Much thanks for your effort!

> - Filename "LE 5_0 Arbeitsauftrage.odt" probably had a few characters more when you saved it.
No, but instead 'a' it was 'รค'. I guess, there is a bug in bugzilla, which corrupted it.
Comment 6 Bart 2020-04-30 19:10:30 UTC
Well, I may have good news and bad news. Which one did you like to hear first? :-D

(They're actually the same. ;-) )

I already had LibreOffice 6.1 installed on my machine. I took the steps that you described, saved the document under another name, and reopened it. I had six pages and the document looked as expected. I added it as an attachment to allow you to check it. It's:
   "LE 5_0 ArbeitsauftrageII.odt"

The "bad" part is that I can't recreate your problem. The good part however, is that your problem may be corrected in version 6.1. 

I saw you're running Ubuntu. If you would want to try version 6.1, you have two choices. I don't know where you're standing regarding Ubuntu and LibreOffice expertise and maybe I'm giving you now too many details, or maybe not enough:

- I'm not familiar with Linux/Ubuntu, and I guess you can install LibreOffice from the Ubuntu software catalog. I don't know which version you'll get, but in the Linux/Debian software catalog I get 6.1. That's why I think you'll get 6.1 too. This probably overrides your 6.0 version. You may need to remove your old version before you can install a new version, that I don't know.

- You can also download version 6.1 from:
  https://downloadarchive.documentfoundation.org/libreoffice/old/6.1.5.2/
In this case you probably get version 6.1 next to 6.0. For Ubuntu you probably need the "deb" package. After you choose either x86 (32 bit) or x86_64 (64 bit) you download the file that you see on top (the one that's 218 MB).

Please let me know if this works for you. Your feedback may be useful for me to help others with future bug reports. If you need more information, just let me know as well.

				~~~

   Here's the version that I tried:

Version: 6.1.5.2
Build ID: 1:6.1.5-3+deb10u5
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 7 Bart 2020-04-30 19:11:52 UTC
Created attachment 160150 [details]
LE 5_0 ArbeitsauftrageII.odt

I removed most of the text on page one, and then saved the document as "LE 5_0 ArbeitsauftrageII.odt"
Comment 8 Ulf Zibis 2020-04-30 22:57:58 UTC
Created attachment 160161 [details]
Edited ODT after reopen

Hi Bart,
your LE 5_0 ArbeitsauftrageII.odt still appears corrupted with 6.0.7.3.
Comment 9 Bart 2020-04-30 23:22:00 UTC
The problem could be the document itself, or, the document could be correct but the LibreOffice version that you use doesn't show it correctly.

This works correctly with version 6.1.5.2 on my computer. I added 
   "LE 5_0 ArbeitsauftrageII.png" 
for you to see what I have on my screen. That's why I think that the document is okay, but that LibreOffice 6.0.7.3 doesn't show it correctly. Because it works fine here, I think that this problem has been corrected in newer versions.

Can you give it a try to install a newer version of LibreOffice? It works well with a newer version here, and it might work well with a newer version on your computer also. A newer version might solve your problem. ;-)
Comment 10 Bart 2020-04-30 23:22:48 UTC
Created attachment 160162 [details]
LE 5_0 ArbeitsauftrageII.png
Comment 11 Ulf Zibis 2020-04-30 23:36:27 UTC
(In reply to Bart from comment #6)
> - I'm not familiar with Linux/Ubuntu, and I guess you can install
> LibreOffice from the Ubuntu software catalog. I don't know which version
> you'll get, but in the Linux/Debian software catalog I get 6.1.
I don't see 6.1 in Ubuntu's catalog:
https://packages.ubuntu.com/search?keywords=libreoffice&searchon=names&suite=all&section=all
Anyway, Ubuntu Bionic 18.04 is a LTS version with 5 years support. It is fixed to 6.0.x.y version of LO. There will never be 6.1.x.y in this Ubuntu release.
So I think, it's a valid bug in LO 6.0 branch.

Thanks for your effort.

Ubuntu 20.04 is out. In some weeks I will upgrade. Then I can tell you, if the bug still exists in LO 6.4.x.y.

Another problem is, that my 12 years old daughter has an old hardware with only running 32 bit Ubuntu. There is no upgrade for Ubuntu 32 Bit to 20.04.
Comment 12 Ulf Zibis 2020-05-01 00:08:22 UTC
Created attachment 160163 [details]
screen shot marked

(In reply to Bart from comment #10)
> Created attachment 160162 [details]
> LE 5_0 ArbeitsauftrageII.png

Even in your screen shot from 6.1 there is still a bug.
The marked text (see my attachment) should be in the same frame box.
Comment 13 Bart 2020-05-01 00:23:37 UTC
I wondered if you faced an obstacle when trying to install a newer version.

If you like you can try a third option. If you start LibreOffice and click Help, then do you have the option "check for updates"?
  Please check image "Libreoffice63-CheckForUpdates.png"

I suspect that you don't have that option, because in versions 6.3 and 7.0 it's there, but in version 6.1 it's not. However, it doesn't hurt to try.

Did you try to go to:
  https://downloadarchive.documentfoundation.org/libreoffice/old/6.1.5.2/
and download and install a newer version from there? 

With some luck you get version 6.1 next to 6.0. That's pretty much what I get if I go there and install a newer version. Please check image
   "LXDEandLibreOfficeVersions.png"

For Ubuntu you probably need the "deb" package. After you choose either x86 (32 bit) or x86_64 (64 bit) you download the file that you see on top (the one that's respectively 198 MB or 218 MB) and install it.

Maybe this is also a solution for your 12 years old daughter with a 32 bit Ubuntu?

(In reply to Ulf Zibis from comment #12)
> Even in your screen shot from 6.1 there is still a bug.
> The marked text (see my attachment) should be in the same frame box.

I saw that image, but I'm sorry. I don't know what your document should look like, and it may be possible to correct that issue also with LibreOffice 6.1. I'm only a volunteer here, spending a lot of time, trying to help you as best as I can, but I don't have a magic wand. 

Best of luck with it!

PS: There are many other bug reports. I'm going to focus on the other ones now.
Comment 14 Bart 2020-05-01 00:24:28 UTC
Created attachment 160165 [details]
Libreoffice63-CheckForUpdates.png
Comment 15 Bart 2020-05-01 00:25:09 UTC
Created attachment 160166 [details]
LXDEandLibreOfficeVersions.png
Comment 16 Ulf Zibis 2020-05-01 12:19:26 UTC
(In reply to Bart from comment #13)
> > Even in your screen shot from 6.1 there is still a bug.
> > The marked text (see my attachment) should be in the same frame box.
> 
> I saw that image, but I'm sorry. I don't know what your document should look
> like, and it may be possible to correct that issue also with LibreOffice
> 6.1. I'm only a volunteer here, spending a lot of time, trying to help you
> as best as I can, but I don't have a magic wand. 
Hi again.
You said, you have MS Windows on your system. Do you also have MS Office?
Then please check for me, how the original DOCX document is displayed there. So we can know, which layout is correct.
Comment 17 Timur 2020-05-02 17:34:32 UTC
I reproduced in Windows with 6.0 so I change to All.
But no repro with new LO, so I'll close as WFM.
It's pointless and incorrect to report bug with such an old LO version.
Comment 18 Ulf Zibis 2020-05-02 19:36:38 UTC
Created attachment 160237 [details]
Reopend ODT with 6.4 after editing

Now I have installed LO 6.4 via PPA:
https://launchpad.net/~libreoffice/+archive/ubuntu/ppa

I now still see a difference before saving and after reopening the doc again.
The frame around the 5 lines now is completely removed.
Comment 19 Timur 2020-05-03 11:24:24 UTC
Do not hijack this with other issue now. Report is too long and not readable.
And do not change Status if you don't know what it means, Reopen is wrong in any case. Use some time to read bugzilla rules on Wiki. 
I set back WFM.
Comment 20 Timur 2020-05-03 11:29:55 UTC
Created attachment 160274 [details]
DOCX compared

If you have another issue, you should *always* first search closed and open bugs and if not found, report separately. 
Note: I don't reproduce frame issue in reopened docx, test with master 7.0+. And discussion should not be continued.
Comment 21 Ulf Zibis 2020-05-03 19:28:49 UTC
(In reply to Timur from comment #20)
> Created attachment 160274 [details]
> DOCX compared
> 
> Note: I don't reproduce frame issue in reopened docx, test with master 7.0+.
> And discussion should not be continued.

The document should be saved as ODT (see comment 1) to see the error (the frame around the text is lost).
Comment 22 Timur 2020-05-04 16:05:29 UTC
Created attachment 160349 [details]
DOC compared MSO LO

Right, there's fileopen issue, LO opens it wrong (and saves as a consequence).
Comment 23 Timur 2020-05-04 16:23:20 UTC
I reported in bug 132687.
Comment 24 Ulf Zibis 2020-05-07 15:45:12 UTC
(In reply to Timur from comment #23)
> I reported in bug 132687.

So I think, this bug should be stated as a "duplicate" of bug 132687 instead "worksforme".
Comment 25 Timur 2020-05-07 17:37:33 UTC
No, because you reported pages issue first and that's WFM.