Bug 115104 - On opening dialog Chapter Numbering (previously called Outline Numbering), select the level Numbering equal with the numbering of the paragraph having the focus
Summary: On opening dialog Chapter Numbering (previously called Outline Numbering), se...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 122551 (view as bug list)
Depends on:
Blocks: Heading-Numbering-Dialog
  Show dependency treegraph
 
Reported: 2018-01-19 09:40 UTC by Timur
Modified: 2023-11-04 17:02 UTC (History)
6 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 Timur 2018-01-19 09:40:24 UTC
1. Create or open a document with chapter numbering like attachment 115699 [details]
2. Set cursor to level 2 paragraph (or change)
3. open Tools-Chapter Numbering dialog
Experienced: focus in Level is set to level 1 or previously open level
Expected: focus is set to paragraph(s) where cursor is (or set to 1-10 if paragraphs of different levels are marked)

Note: I didn't find existing bug. There's Bug 78783 but I didn't understand if it's related.
Comment 1 Dieter 2018-01-20 07:15:17 UTC
I confirm it with


Version: 5.4.4.2 (x64)
Build ID: 2524958677847fb3bb44820e40380acbe820f960
CPU threads: 4; OS: Windows 6.19; UI render: default; 
Locale: de-DE (de_DE); Calc: group
Comment 2 Dieter 2019-01-08 09:17:24 UTC
*** Bug 122551 has been marked as a duplicate of this bug. ***
Comment 3 Dieter 2019-01-08 09:20:10 UTC
Still repro with

Version: 6.3.0.0.alpha0+ (x64)
Build ID: ffa5b8a82eab18041bbee4d6914892b82c7801d3
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-12-19_03:24:54
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded
Comment 4 Cor Nouws 2019-01-08 10:45:25 UTC
(In reply to Timur from comment #0)

> Expected: focus is set to paragraph(s) where cursor is
It's a nice idea. In my daily work I do not experience current behavior as a problem however.

>  (or set to 1-10 if paragraphs of different levels are marked)
In that case I would rather prefer to have the highest level selected.
Comment 5 Cor Nouws 2019-01-08 10:48:05 UTC
@heiko: easyHackify this one?
Comment 6 Justin L 2021-05-01 09:35:24 UTC
repro 7.2+

I noticed that Format -> Bullets and Numbering works "as expected". So some code from there could be borrowed.  (But care should be taken to NOT be misleading if the current paragraph is not actually using Chapter numbering, but just normal numbering. In that case, I agree with Cor that it should default to Level 1.)
Comment 7 Justin L 2023-05-10 23:20:45 UTC
Fixed in LO 7.5.3 by commit f2da924f108468dcd662922e484a2ec28276b410
Author: Mike Kaganski on Tue Mar 14 11:01:28 2023 +0300
    tdf#154179: fix pre-selection of the current outline level
Comment 8 Dieter 2023-11-04 17:02:35 UTC
VERIFIED with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c0c8cffd3541e3cd616c96791b04e7ebf2b2ed03
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded