Bug 145849 - Ctrl+A and then Ctrl+M leads page style is changed to the default
Summary: Ctrl+A and then Ctrl+M leads page style is changed to the default
Status: RESOLVED DUPLICATE of bug 73483
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86 (IA32) All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Navigator Clear-Formatting Writer-Styles-Page
  Show dependency treegraph
Reported: 2021-11-23 10:14 UTC by jsv
Modified: 2023-05-31 06:33 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

test document (11.24 KB, application/vnd.oasis.opendocument.text)
2021-11-23 14:05 UTC, jsv

Note You need to log in before you can comment on or make changes to this bug.
Description jsv 2021-11-23 10:14:07 UTC
1. Start Writer in safe mode

2. Press the Enter key may times so that now you have 2 pages.

3. In the beginning of the 1st page, type foo.

   In the beginning of the second page, type bar.

4. Apply the "Right Page" style to the first page.

   This also means that the second page will automaticaly "take" the "Left Page" style.

Everything is fine yet.

5. Press Ctrl+A and then Ctrl+M to delete any direct formatting.

Everything is fine yet.

Save and close the document, and then open it again.

You will see that both pages now have the "Default Page Style".

Steps to Reproduce:
See above

Actual Results:
See above

Expected Results:
See above

Reproducible: Always

User Profile Reset: No

Additional Info:
See above
Comment 1 Heiko Tietze 2021-11-23 13:29:55 UTC
Using a page break between Foo and Bar (ctrl+enter) ends up in no break after cleaning all direct formatting followed by save/reload. Buggy, yes. But I cannot confirm the loss of page style settings (and it's unclear what exactly you do).

Maybe the question for UX is whether the page style is direct formatting or not. But unclear to me. Please add the keyword again, if it comes to this question.

Reminds me on similar issue in bug 144948.
Comment 2 jsv 2021-11-23 13:58:24 UTC
Heiko, I haven't tried it with using Ctrl+Enter.

What I'm talking about is typing "foo" in the fist page, then pressing the Enter key as many times as you need to the second page to appear, and then typing "bar" in the second page.

That is, this is simply two pages of text, there are no manual page breaks.
Comment 3 jsv 2021-11-23 14:00:06 UTC
There is a typo:

"What I'm talking about is typing "foo" in the FIRST page"

Sorry, I made typos very often. It is very inconvenient to not have an option to edit comments here.
Comment 4 jsv 2021-11-23 14:05:38 UTC
Created attachment 176447 [details]
test document
Comment 5 Telesto 2021-11-23 14:28:52 UTC
Version: (x64) / LibreOffice Community
Build ID: 214fa233338c09156c67f85818b6a2ea6b3235bd
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 6 Telesto 2021-11-23 14:38:11 UTC
Also in
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and in
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

CTRL-M removing page style should certainly update the Navigator, if this is the proper result. What CTRL+M should do or shouldn't do is lovely discussion topic. Or if some additional remove formatting tool being needed. See bug 145118 and bug 139693 for example

NEW meaning confirm in this case. Without any clue what counts as bug. Navigator not updating or the removal of the page style or even both.
Comment 7 Mike Kaganski 2023-05-29 17:03:50 UTC
Likely a dupe of bug 73483.
Comment 8 BogdanB 2023-05-29 17:25:35 UTC
(In reply to Mike Kaganski from comment #7)
> Likely a dupe of bug 73483.

It is a duplicate.

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