Bug 162298 - Opening "Export directly as PDF" dialog deletes text hidden via character formatting
Summary: Opening "Export directly as PDF" dialog deletes text hidden via character for...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: x86-64 (AMD64) All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, dataLoss, regression
Depends on:
Blocks: Character
  Show dependency treegraph
 
Reported: 2024-08-01 15:44 UTC by lo
Modified: 2024-09-09 06:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of the steps to reproduce the bug (156.02 KB, application/pdf)
2024-08-01 15:54 UTC, lo
Details
ODT-Dokument (9.84 KB, application/vnd.oasis.opendocument.text)
2024-08-02 11:41 UTC, lo
Details
Line 2 is marked as "hidden" (86.18 KB, image/jpeg)
2024-08-03 10:31 UTC, lo
Details
screen capture to reproduce bug with uploaded odt-document (1.37 MB, video/mp4)
2024-08-07 17:38 UTC, lo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lo 2024-08-01 15:44:53 UTC
Description:
Libreoffice Writer:
If the "Export directly as PDF" function is cancelled, all text marked as "hidden" in the document is deleted.

Steps to Reproduce:
1. Text is marked as "hidden" and file is saved.
2. "Export directly as PDF" is selected.
3. Instead of saving the file, the process is cancelled.

Actual Results:
All text marked as "hidden" in the document is deleted.

Expected Results:
Canceling the process must not change the text of the document. Text marked as "hidden" may not be deleted.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-CH (de_CH); UI: de-DE
Calc: threaded
Comment 1 m_a_riosv 2024-08-01 15:52:34 UTC
Please attach a sample file to test.
Comment 2 lo 2024-08-01 15:54:02 UTC
Created attachment 195640 [details]
screenshot of the steps to reproduce the bug
Comment 3 m_a_riosv 2024-08-02 02:47:22 UTC
A screenshot is not the text file where to text the issue.
Comment 4 lo 2024-08-02 11:41:47 UTC
Created attachment 195663 [details]
ODT-Dokument
Comment 5 m_a_riosv 2024-08-02 13:02:56 UTC
There is no hidden text on the file, I think.
Comment 6 lo 2024-08-03 10:31:22 UTC
Created attachment 195680 [details]
Line 2 is marked as "hidden"

Line 2 is marked as "hidden". Can be displayed using the formatting icon.
Comment 7 m_a_riosv 2024-08-03 14:05:23 UTC
Not in the attached odt file, at least I can't find it.
Comment 8 lo 2024-08-07 17:38:45 UTC
Created attachment 195760 [details]
screen capture to reproduce bug with uploaded odt-document

Too bad you can't reproduce this.

When I download and open the uploaded odt-file, the 2nd line is marked as "hidden". You can see this in the attached screencast. If it looks different for you, maybe someone else can reproduce the bug? I'm at the end of my rope. Thanks for your efforts.
Comment 9 m_a_riosv 2024-08-07 20:40:14 UTC
Ok, I see, but I not able to reproduce the lost of text.

Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 10 Buovjaga 2024-09-09 06:23:12 UTC
To display text hidden via character formatting's font effects when Toggle Formatting Marks is active, you need to check this option: Tools > Options > Writer > Formatting Aids > Display Formatting > Hidden characters. There is a request to implement a UNO command for this toggle: bug 107722.

Bibisected with linux-64-7.5 to 1e007e8f1703851b01c68884e87c906f6bae5a5e
sw: fix merge mail to direct export as pdf

The text is deleted immediately after opening the Export directly as PDF dialog.

After saving the modified document, the text "2 Zeile 2" is no longer found in content.xml, so this is real data loss.