Bug 156221 - new style lost after newline and replaced with 'Body Text'
Summary: new style lost after newline and replaced with 'Body Text'
Status: RESOLVED DUPLICATE of bug 156165
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2023-07-10 07:57 UTC by Juang Dse
Modified: 2023-07-11 09:18 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juang Dse 2023-07-10 07:57:38 UTC
1. Type 'test' and select all
2. Format as italic
3. Do 'New style from selection', give it a name and 'Ok'
4. Press 'Esc' and 'newline'

Result:

In the old line gets the 'Body text' style.
Comment 1 Jojo 2023-07-10 18:02:55 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 7.5.5.1 (X86_64) / LibreOffice Community
Build ID: 2c5e46c1980ec5241359fd65d751dc518205e7af
CPU threads: 4; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded


Steps:
1. Open LibreOffice Writer
2. Type "test"
3. Ctrl+A to select all
4. Click italics button to format in italics
5. Styles -> "New style from selection"
6. Enter name "test_it", click "Ok"
7. Hit escape, then enter

Result:

Style is "test_it" on the current line and previous line containing the test "Text" which was auto-capitalized
Comment 2 raal 2023-07-10 18:42:58 UTC
Confirm with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f1012806f5cf2cd53e52d8f2a95c09a2215efbc
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

regression, works in Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded
Comment 3 raal 2023-07-10 18:55:01 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.6.
Adding Cc: to Baole Fang ; Could you possibly take a look at this one?
Thanks
 3a325bcb3c34f233639668170c592800de1d826d is the first bad commit
commit 3a325bcb3c34f233639668170c592800de1d826d
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Jun 2 11:52:13 2023 +0200

    source 083975f9666e3dc6fd665dc0418e6c3130628359

151213: tdf#90507: Prevent changing default style in AutoCorrect | https://gerrit.libreoffice.org/c/core/+/151213
Comment 4 Baole Fang 2023-07-10 19:31:48 UTC
This should be a duplicate of tdf#156165. I've already worked a fix on that ticket. It is still under review, but you can try to apply the patch to see if the bug is fixed.

https://gerrit.libreoffice.org/c/core/+/154144
Comment 5 Stéphane Guillou (stragu) 2023-07-11 09:18:12 UTC
Thanks all, marking as a duplicate.

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