Bug 153832 - Save-as DOC loses text frames
Summary: Save-as DOC loses text frames
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: DOC-Textbox
  Show dependency treegraph
 
Reported: 2023-02-25 21:27 UTC by Vincent
Modified: 2023-05-25 13:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test DOC file from Vincent (126.00 KB, application/msword)
2023-02-28 10:24 UTC, Stéphane Guillou (stragu)
Details
screenshot of original DOC in MS Word (188.43 KB, image/png)
2023-02-28 10:27 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent 2023-02-25 21:27:06 UTC
Description:
I opened a word document and saved it in a new location.  I then went to that location and opened it only to discover all text had been deleted - graphics remained.
I opened the original and again saved in a new location, but in native Libre Office format. I then went to that location and opened it and all the text was there.  I saved as word 97-2003 document, exited and loaded the document and the text had disappeared.

Steps to Reproduce:
1.Open a word 97-2003 doc
2.Save-as in a new location
3.Open the doc in new location
4.All text is gone - graphics remain.

Actual Results:
Lost all text

Expected Results:
Exact duplicate of original doc


Reproducible: Always


User Profile Reset: No

Additional Info:
I do not know enough to add more info.
Comment 1 Stéphane Guillou (stragu) 2023-02-26 21:14:15 UTC
Hi Vincent
Can you please attach an example document here for us to test?
Can you also paste here the information from Help > About LibreOffice?
Thank you!
Comment 2 Stéphane Guillou (stragu) 2023-02-28 10:24:37 UTC
Created attachment 185638 [details]
test DOC file from Vincent

Vincent replied via email:

> I do not know where the original info is located, but this is a synopsis:
>  1.  Loaded the attached word document from an external hard drive.
>  2.  Saved the document to my laptop (HP Envy x360) running Windows 10
>  3.  Exited LibreOffice 7.4
>  4.  Loaded the file again in LibreOffice 7.4 on my laptop
>  5.  All text disappeared - graphics remained.
>  6.  Loaded it again from the external drive and saved to laptop in LibreOffice default format.
>  7.  Text remained.  Edited it and saved as Word document.
>  8.  Quit LibreOffice
>  9.  Opened the word document and text was gone - graphics remained.
>
> Cannot copy from Help-About-LibreOffice - might want to make that possible.
> Version 7.4.5.1 (x64)/LibreOffice Community
> Build 9c0871452b3918c1019dde9bfac75448afc4b57f
> Environment: CPU threads:8; OS: Windows 10; Build: 22000
> User Interface: UI render: Skia/Raster; VCL: win
> Locale: en-US (en_US); UI: en-US
> Misc: Calc: threaded

Thank you for this information, Vincent!
I attached the document here.

I tested and I could reproduce your issue:

1. Open attachment
2. Save and confirm using DOC format
3. File > Reload

Result: text disappears, 4 frames out of 8 are lost (see in the Navigator sidebar).

On:

Version: 7.4.5.1 / LibreOffice Community
Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I did not need to use an external storage device.

I could also reproduce in a recent master build, so the issue is still here:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 03f58d6af52bab05545833980cca835a3df0949a
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Already the case in:

Version: 6.0.0.3
Build ID: 64a0f66915f38c6217de274f0aa8e15618924765
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group

I also tested saving as DOCX, and the text remained but was moved to the top-left quadrant. Let's keep this report focused on the DOC issue.
Comment 3 Stéphane Guillou (stragu) 2023-02-28 10:27:34 UTC
Created attachment 185639 [details]
screenshot of original DOC in MS Word

Using: Microsoft® Word for Microsoft 365 MSO (Version 2212 Build 16.0.15928.20196) 64-bit
Comment 4 Justin L 2023-05-25 13:32:46 UTC
fixed in LO 7.6 by commit 61be351ac83acec75788d2f79a9038486163160f
Author: Miklos Vajna on Thu Apr 20 08:13:12 2023 +0200
    sw floattable: import floating tables from DOC as split flys by default