From 103bf75921e069d1c078c0ef30b94b8f91920877 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 24 Apr 2015 12:25:35 +0200 Subject: loplugin:simplifybool Change-Id: I2efe6e7dcba4f193bc0d1f3fa7313d618af1b65c --- drawinglayer/source/primitive2d/textbreakuphelper.cxx | 2 +- drawinglayer/source/primitive2d/textlayoutdevice.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drawinglayer') 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(rFontAttribute.getWeight())); aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE); aRetval.SetOutline(rFontAttribute.getOutline()); -- cgit v1.2.3