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

Jochen Nitschke j.nitschke+logerrit at ok.de
Sun Mar 5 19:59:28 UTC 2017


 sd/source/core/stlpool.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 23c9a2a1e022391b62afd3a69a6f7f9deb8fa3f1
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Mar 5 10:50:21 2017 +0100

    cppcheck: knownConditionTrueFalse
    
    > Condition 'nLevel==1' is always true
    
    Change-Id: If35c47af9bea87dbc93a011f0fb53cf966bf579f
    Reviewed-on: https://gerrit.libreoffice.org/34901
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 43f90b3..29afb37 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -256,11 +256,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool
                 // #i16874# enable kerning by default but only for new documents
                 rSet.Put( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) );
 
-                if( nLevel == 1 )
-                {
-                    vcl::Font f( GetBulletFont() );
-                    PutNumBulletItem( pSheet, f );
-                }
+                vcl::Font f( GetBulletFont() );
+                PutNumBulletItem( pSheet, f );
             }
 
             sal_uLong nFontSize = 20;


More information about the Libreoffice-commits mailing list