diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:25:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:20 +0200 |
commit | 103bf75921e069d1c078c0ef30b94b8f91920877 (patch) | |
tree | de6de42652882479329b68133e8d2794b0403ebd /drawinglayer | |
parent | aa449f87cf60e8c0682c3a2b243b1c26d7cdaf94 (diff) |
loplugin:simplifybool
Change-Id: I2efe6e7dcba4f193bc0d1f3fa7313d618af1b65c
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/textbreakuphelper.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/textlayoutdevice.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/textbreakuphelper.cxx b/drawinglayer/source/primitive2d/textbreakuphelper.cxx index 10e76c043b90..43df7f5d146f 100644 --- a/drawinglayer/source/primitive2d/textbreakuphelper.cxx +++ b/drawinglayer/source/primitive2d/textbreakuphelper.cxx @@ -154,7 +154,7 @@ namespace drawinglayer pTextDecoratedPortionPrimitive2D->getTextStrikeout(), // reset WordLineMode when BreakupUnit_word is executed; else copy original - bWordLineMode ? false : pTextDecoratedPortionPrimitive2D->getWordLineMode(), + !bWordLineMode && pTextDecoratedPortionPrimitive2D->getWordLineMode(), pTextDecoratedPortionPrimitive2D->getTextEmphasisMark(), pTextDecoratedPortionPrimitive2D->getEmphasisMarkAbove(), diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index cecd7801e2e3..93dfc867d3e5 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -403,7 +403,7 @@ namespace drawinglayer // define various other FontAttribute aRetval.SetAlign(ALIGN_BASELINE); aRetval.SetCharSet(rFontAttribute.getSymbol() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE); - aRetval.SetVertical(rFontAttribute.getVertical() ? true : false); + aRetval.SetVertical(rFontAttribute.getVertical()); aRetval.SetWeight(static_cast<FontWeight>(rFontAttribute.getWeight())); aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE); aRetval.SetOutline(rFontAttribute.getOutline()); |