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

New commits:
commit 8debd8b675bad760f9dbeb822cc80f0b91b5c89e
Author:     Aron Budea <aron.bu...@collabora.com>
AuthorDate: Sat Oct 8 00:58:12 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 11 18:26:22 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/+/141066
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index a891a53daa90..2d34c0e51e3a 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1178,7 +1178,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