From ab8405cae9e25ac5201b3648a53a811670ebb715 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 17 Apr 2015 14:57:03 +0200 Subject: loplugin:implicitboolconversion clean-up Change-Id: I248a35364e7bc24ec2d62f70ac9a9e91f07ddf68 --- editeng/source/editeng/editattr.cxx | 2 +- editeng/source/editeng/editdoc.cxx | 2 +- editeng/source/outliner/outliner.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editeng/source/editeng/editattr.cxx b/editeng/source/editeng/editattr.cxx index 85676abb035e..3076eade5aad 100644 --- a/editeng/source/editeng/editattr.cxx +++ b/editeng/source/editeng/editattr.cxx @@ -411,7 +411,7 @@ EditCharAttribPairKerning::EditCharAttribPairKerning( const SvxAutoKernItem& rAt void EditCharAttribPairKerning::SetFont( SvxFont& rFont, OutputDevice* ) { - rFont.SetKerning( static_cast(GetItem())->GetValue() ); + rFont.SetKerning( static_cast(GetItem())->GetValue() ? KERNING_FONTSPECIFIC : 0 ); } diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index a1651abb2bc0..4d67332c4829 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2083,7 +2083,7 @@ void CreateFont( SvxFont& rFont, const SfxItemSet& rSet, bool bSearchInParent, S rFont.SetEscapement( nEsc ); } if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_PAIRKERNING ) == SfxItemState::SET ) ) - rFont.SetKerning( static_cast(rSet.Get( EE_CHAR_PAIRKERNING )).GetValue() ); + rFont.SetKerning( static_cast(rSet.Get( EE_CHAR_PAIRKERNING )).GetValue() ? KERNING_FONTSPECIFIC : 0 ); if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_KERNING ) == SfxItemState::SET ) ) rFont.SetFixKerning( static_cast(rSet.Get( EE_CHAR_KERNING )).GetValue() ); if ( bSearchInParent || ( rSet.GetItemState( EE_CHAR_WLM ) == SfxItemState::SET ) ) diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index f1069ccdda91..724a14910b71 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1015,7 +1015,7 @@ void Outliner::PaintBullet( sal_Int32 nPara, const Point& rStartPos, } DrawingText(aTextPos, pPara->GetText(), 0, pPara->GetText().getLength(), pBuf.get(), - aSvxFont, nPara, -1, bRightToLeftPara, 0, 0, false, false, true, 0, Color(), Color()); + aSvxFont, nPara, -1, bRightToLeftPara ? 1 : 0, 0, 0, false, false, true, 0, Color(), Color()); } else { -- cgit