Bug 129270 - Chapter Numbering of Heading 1 changes after setting Return, if Next Style is set to Heading 2
Summary: Chapter Numbering of Heading 1 changes after setting Return, if Next Style is...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Chapter-Numbering
  Show dependency treegraph
Reported: 2019-12-07 18:59 UTC by Robert Großkopf
Modified: 2020-09-16 11:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Open the document and set a return after last Hedaing. Numbering changes to wrong number. (9.08 KB, application/vnd.oasis.opendocument.text)
2019-12-07 18:59 UTC, Robert Großkopf

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2019-12-07 18:59:46 UTC
Created attachment 156401 [details]
Open the document and set a return after last Hedaing. Numbering changes to wrong number.

Open the attached Writer document. 
Last line is "2 This is the second Heading 1". 
Set the cursor at the end of this line an press Enter. 
The numbering will be changed to 1.2, which is the second step of the numbering of "Heading 2".

This buggy behavior appears in LO, also in LO It doesn't appear in LO on OpenSUSE 15.1 64bit rpm Linux.
Comment 1 Oliver Brinzing 2019-12-08 07:38:28 UTC
reproducible with:

Version: (x64)
Build-ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group threaded

but *not* reproducible with:

Version: (x64)
Build-ID: dc89aa7a9eabfd848af146d5086077aeed2ae4a5
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: 

btw: after a save & reload cycle the chapter numbering is corrected. 

maybe related to:
Bug 128891 - FILEOPEN: Level 2 chapter enumeration doesn't reset counter

i will try to bisect
Comment 2 Oliver Brinzing 2019-12-08 08:07:09 UTC
seems to have started with:


commit	03a4d74e3d7f10313b034cc8325dc9a87aa6721d	[log]
author	Serge Krot <Serge.Krot@cib.de>	
Mon Jun 18 18:15:55 2018 +0200
committer	Thorsten Behrens <Thorsten.Behrens@CIB.de>
Mon Jun 25 16:11:44 2018 +0200
tree	c0280fac5c7d985adf8776dbb8778240d233ae5d
parent	56a68f70ec8ddf8a452732e51828f877ed49999c [diff]

tdf#113877 Insert doc: merge list into text with specifc style

When inserting document, in the current position the text could have custom
style but really it is the same Standard style. Therefore we should not
merge first inserted node into the insert position and just overwrite
style in the insert position with text style from the inserted node.

Change-Id: Ib67c56bed3d30f356f83dc0b4d4a1710def10853
Reviewed-on: https://gerrit.libreoffice.org/56052
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit baf3cec77db5f03200c038101e77720fae2ffba3)
Reviewed-on: https://gerrit.libreoffice.org/56366

    sw/qa/extras/uiwriter/data/tdf113877_blank.odt[Added - diff]
    sw/qa/extras/uiwriter/data/tdf113877_blank_ownStandard.odt[Added - diff]

4 files changed

$ git bisect good
a490b913ed4d763b78747330cebda1c1c3fea45b is the first bad commit
commit a490b913ed4d763b78747330cebda1c1c3fea45b
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Mon Jun 25 15:49:10 2018 -0700

    source sha:03a4d74e3d7f10313b034cc8325dc9a87aa6721d

    source sha:03a4d74e3d7f10313b034cc8325dc9a87aa6721d

:040000 040000 ece2d28da0d1c0367287f0145529be7fe61d362b 819d385d15672090facc8dd8235e03fd98a985f6 M      instdir

$ git bisect log
# bad: [75d131082ce51ed5a898d97bdc2b7a9fe5ddb340] source sha:5b3765f4d881e7ddefd0c4aad6886a46f000b4fc
# good: [29d08f54c2f71ffee4fe12dbb24c5f5cbedecfd2] source sha:6eeac3539ea4cac32d126c5e24141f262eb5a4d9
git bisect start 'master' 'oldest'
# good: [6227e15df9be101688e37cd891817cd858b49e03] source sha:b8b7f8a8f8d97088181d287bb75e74facece16c6
git bisect good 6227e15df9be101688e37cd891817cd858b49e03
# good: [50b236fe0d359b9d5cc9998d2e72009a90a11d08] source sha:b6025e6cffe2024fefebd161ea739188b4b4fdaf
git bisect good 50b236fe0d359b9d5cc9998d2e72009a90a11d08
# good: [d59609a1bfbbb4f924492755719b7d340a51de1b] source sha:eeaf4b0b7ad21da879554bdd93c9a9b97b8268d6
git bisect good d59609a1bfbbb4f924492755719b7d340a51de1b
# bad: [75029ade8fd0bbe5abc530394b85b346b499bc55] source sha:ec79d0127f90d65d722e46688b6cfcf2f5e59794
git bisect bad 75029ade8fd0bbe5abc530394b85b346b499bc55
# bad: [615238624584cc719cd84469c8fa9f44f4fb717f] source sha:945cca96e110262d2e33554716692f230215b189
git bisect bad 615238624584cc719cd84469c8fa9f44f4fb717f
# good: [34221d19029a1230e4780a627fac02045363ef5a] source sha:6ceaf86d3548375d19c28fa7783c42a4da4637fb
git bisect good 34221d19029a1230e4780a627fac02045363ef5a
# good: [f65617863e1676a8e2b39e50cf99aac5facf5246] source sha:b86a8857e6488bac1224a9eed471bcf930994399
git bisect good f65617863e1676a8e2b39e50cf99aac5facf5246
# bad: [9251c87c98bd26200b43a3002096e888c70462df] source sha:8f56cf1f5b29326371b9c29e2b9ccd81ed760941
git bisect bad 9251c87c98bd26200b43a3002096e888c70462df
# good: [eb466972d5e675eab75c028bb7e2eff2ef797af3] source sha:546a4b61390ab1eee44dbf982a582b1de3a9a5a9
git bisect good eb466972d5e675eab75c028bb7e2eff2ef797af3
# good: [04f54515201ecd488785d8aed9cadd8216eb9e7a] source sha:9ac5100cd3c9d7767067a3421c736b99b76670ed
git bisect good 04f54515201ecd488785d8aed9cadd8216eb9e7a
# good: [5f6108c7c253196ccfc9e23e36736b6d4218590f] source sha:0b77d890bcbc189ff12cf5dab683c6aed881c177
git bisect good 5f6108c7c253196ccfc9e23e36736b6d4218590f
# bad: [a490b913ed4d763b78747330cebda1c1c3fea45b] source sha:03a4d74e3d7f10313b034cc8325dc9a87aa6721d
git bisect bad a490b913ed4d763b78747330cebda1c1c3fea45b
# good: [011be7a96a380f495af59cf4237818c414b76c99] source sha:56a68f70ec8ddf8a452732e51828f877ed49999c
git bisect good 011be7a96a380f495af59cf4237818c414b76c99
# first bad commit: [a490b913ed4d763b78747330cebda1c1c3fea45b] source sha:03a4d74e3d7f10313b034cc8325dc9a87aa6721d

also reproducible with:

Version: (x64)
Build ID: 00262b08984fb2fb91b760d588851bd47ae4d3ac
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded