sw/source/uibase/app/docst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ca1378b6552251743c92a19f9ce8b3833557b548
Author:     Aron Budea <aron.bu...@collabora.com>
AuthorDate: Sat Oct 8 00:58:12 2022 +0200
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Sun Oct 9 18:30:34 2022 +0200

    "No List" option in Styles Sidebar doesn't remove list in non-English UI
    
    In a list, with Styles sidebar open and List Styles selected,
    the No List option did not remove the list if the UI language
    was other than English.
    
    No List entry exists since
    a56aa46fcc62227df7dc9a8fa04205e8ff5ed2a1 .
    
    Change-Id: I5210c07c811d08489c1b9a199f6756273153e05d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141092
    Tested-by: Jenkins
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 58c3c9469024..3581cac6d09b 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1179,7 +1179,7 @@ SfxStyleFamily SwDocShell::ApplyStyles(const OUString 
&rName, SfxStyleFamily nFa
             // reset indent attribute on applying list style
             // continue list of list style
             const SwNumRule* pNumRule = pStyle->GetNumRule();
-            if (pNumRule->GetName() == "No List")
+            if (pNumRule->GetName() == SwResId(STR_POOLNUMRULE_NOLIST))
             {
                 
SfxViewFrame::Current()->GetDispatcher()->Execute(FN_NUM_BULLET_OFF);
                 break;

Reply via email to