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

New commits:
commit 4d89a1f455ffec0a03b5568b201c4e2f73c4fe11
Author:     Aron Budea <aron.bu...@collabora.com>
AuthorDate: Sat Oct 8 00:58:12 2022 +0200
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Wed Oct 26 20:39:04 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>
    (cherry picked from commit 6a97ccad4a5d2a0d97bfe023aedf7a0146cd9782)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141179
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 44e42d6f58c3..65859c303d0d 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1185,7 +1185,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