https://bugs.documentfoundation.org/show_bug.cgi?id=151563

            Bug ID: 151563
           Summary: Inconsistent behavior of "New style from selection" in
                    Styles list and Styles menu
           Product: LibreOffice
           Version: 7.4.1.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When you select some text apply, formatting by direct formatting until you are
content with it, and them want to create a new style from that selection, you
can select the Styles menu and select New style from selection, which will
always create a paragraph style, or first select the styles category that you
want for your new style, then select the New style from selection in the Styles
action drop down menu on the far right of the styles list, which will then
result in a new style in the correct style category. Same name, different
behavior. I think that's misleading. 
I like redundancy in where you can access commands, as some people like
clicking toolbars, others menubars and yet other people want keyboard links.
But I expect that all commands, regardless of where they are accessed, will do
the exact same thing, so that a user doesn't get confused, or, worse, starts
thinking that some functionality is simply not available, like, you can't make
a new character style from selected text. 
It'd be better if both commands give the same result. After all, both commands
get you to the same dialog box, where you can only enter a name. 

I suggest that you add a selection list to that dialog box, where you can
select the category (Paragraph, Character, etc.), so that people who don't work
much with the Styles list open, can access the menu bar command, enter a name
and select the correct category; and people who work with the Styles list open
but forget to select the correct category first, still get a chance to get the
right one.

Please also see the discussion in
https://ask.libreoffice.org/t/different-styles-in-same-paragraph/82884

Steps to Reproduce:
1. Select some text in an open document, apply some formatting (not necessary).
2. Select the Styles list, select the Character styles list. Select Menu -
Styles - New style from selection.
3. Open the Styles list, select a category other than Paragraph, select New
style from selection in the Styles actions list at the far right of the Styles
list.

Actual Results:
For step 2  > A new paragraph style is added, regardless of the selected
category in the Styles list.
For step 3  > A new style is added in the correct category.

Expected Results:
You'd expect that if the Character styles list was selected, you´d get a new
character style in both cases, but it doesn't.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.2.3 / LibreOffice Community
Build ID: 22949782292d40bc0751a2b0b2cf40927460a4f8
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to