[Libreoffice-commits] core.git: sw/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Sat Sep 26 07:51:40 UTC 2020


 sw/source/uibase/shells/txtnum.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7f8ef5abc9ca8bfb41ac2d5aea25b78aed3d5566
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Sep 25 12:24:33 2020 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Sep 26 09:51:02 2020 +0200

    Fix typo in code
    
    It passed "make check" on Linux
    
    Change-Id: I0d3bb7281b8b863d7a5eade7a4e37c6df106cfd2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103452
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sw/source/uibase/shells/txtnum.cxx b/sw/source/uibase/shells/txtnum.cxx
index aadc698ac024..3feff416724b 100644
--- a/sw/source/uibase/shells/txtnum.cxx
+++ b/sw/source/uibase/shells/txtnum.cxx
@@ -252,7 +252,7 @@ void SwTextShell::ExecSetNumber(SfxRequest const &rReq)
             const SfxUInt16Item* pItem = rReq.GetArg<SfxUInt16Item>(nSlot);
             if ( pItem != nullptr )
             {
-                const sal_uInt16 nChoosenItemIdx = pItem->GetValue();
+                const sal_uInt16 nChosenItemIdx = pItem->GetValue();
                 svx::sidebar::NBOType nNBOType = svx::sidebar::NBOType::Bullets;
                 if ( nSlot == FN_SVX_SET_NUMBER )
                     nNBOType = svx::sidebar::NBOType::Numbering;
@@ -290,7 +290,7 @@ void SwTextShell::ExecSetNumber(SfxRequest const &rReq)
                     aSet.Put( SvxNumBulletItem( aNewSvxNumRule, SID_ATTR_NUMBERING_RULE ) );
 
                     pNBOTypeMgr->SetItems( &aSet );
-                    pNBOTypeMgr->ApplyNumRule( aNewSvxNumRule, nChoosenItemIdx - 1, nActNumLvl );
+                    pNBOTypeMgr->ApplyNumRule( aNewSvxNumRule, nChosenItemIdx - 1, nActNumLvl );
 
                     aNewNumRule.SetSvxRule( aNewSvxNumRule, GetShell().GetDoc() );
                     aNewNumRule.SetAutoRule( true );


More information about the Libreoffice-commits mailing list