Bug 139311 - ClearDirectFormatting removes page styles
Summary: ClearDirectFormatting removes page styles
Status: RESOLVED DUPLICATE of bug 73483
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-30 01:59 UTC by S.Zosgornik
Modified: 2023-05-31 06:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Document (11.15 KB, application/vnd.oasis.opendocument.text)
2020-12-30 02:01 UTC, S.Zosgornik
Details
Open Document and reset direct formatting. Pagebreak is part of paragraph format. (11.13 KB, application/vnd.oasis.opendocument.text)
2020-12-30 10:48 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S.Zosgornik 2020-12-30 01:59:34 UTC
Description:
Clear Direct Formatting should only change characters, paragraphs and other objects that aren't bond to a style. However using this feature will also unbind all page styles.

Steps to Reproduce:
1.Open attached file
2.Clear the direct formatting
3.save the file
4.close and reopen the document

Actual Results:
Page styles and page breaks are removed

Expected Results:
Only direct formatting should be removed


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: CL
Comment 1 S.Zosgornik 2020-12-30 02:01:04 UTC
Created attachment 168564 [details]
Document
Comment 2 Robert Großkopf 2020-12-30 08:17:55 UTC
The direct formatting is to set a page break in a paragraph with a specific style. This isn't part of the format defined in paragraph format "Heading 5 intended".

If there is set a page break in the style "Heading 5 intended" it won't be deleted. So the only possibility for the attached file is: Define two formats for paragraph: "Heading 5 intended left" and "Heading 5 intended right" and the page break won't be deleted with clear direct formatting.

Clear direct formatting should clear all the formatting, which isn't defined in the format for the paragraph. Ans this is what has been done here. So I don't see a bug in this behavior.
Comment 3 S.Zosgornik 2020-12-30 10:06:21 UTC
Even while CDF does keep pagebreaks defined inside the text flow tab of paragraphs does it still clear all page styles.
Comment 4 m_a_riosv 2020-12-30 10:29:44 UTC
Maybe the bug it's that the delete page break it's applied only after reload the document not after clear direct format.
Comment 5 Robert Großkopf 2020-12-30 10:38:18 UTC
(In reply to m.a.riosv from comment #4)
> Maybe the bug it's that the delete page break it's applied only after reload
> the document not after clear direct format.

This is bug 73483
Comment 6 Robert Großkopf 2020-12-30 10:48:06 UTC
Created attachment 168573 [details]
Open Document and reset direct formatting. Pagebreak is part of paragraph format.
Comment 7 m_a_riosv 2020-12-30 11:32:20 UTC
(In reply to Robert Großkopf from comment #6)
> Created attachment 168573 [details]
> Open Document and reset direct formatting. Pagebreak is part of paragraph
> format.

Then we must close this one as dup?
Comment 8 S.Zosgornik 2020-12-30 16:56:44 UTC
(In reply to Robert Großkopf from comment #6)
> Created attachment 168573 [details]
> Open Document and reset direct formatting. Pagebreak is part of paragraph
> format.

I see it doesn't remove this way. But is it intended that CDF removes any page styles not declared in the text flow tab of paragraphs? What about documents with just one page? Using Clear Direct Formatting would always remove the page style.
Comment 9 Buovjaga 2021-11-25 15:26:59 UTC
Closing as dupe

*** This bug has been marked as a duplicate of bug 73483 ***