Kaydet (Commit) 103bf759 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I2efe6e7dcba4f193bc0d1f3fa7313d618af1b65c
üst aa449f87
...@@ -154,7 +154,7 @@ namespace drawinglayer ...@@ -154,7 +154,7 @@ namespace drawinglayer
pTextDecoratedPortionPrimitive2D->getTextStrikeout(), pTextDecoratedPortionPrimitive2D->getTextStrikeout(),
// reset WordLineMode when BreakupUnit_word is executed; else copy original // reset WordLineMode when BreakupUnit_word is executed; else copy original
bWordLineMode ? false : pTextDecoratedPortionPrimitive2D->getWordLineMode(), !bWordLineMode && pTextDecoratedPortionPrimitive2D->getWordLineMode(),
pTextDecoratedPortionPrimitive2D->getTextEmphasisMark(), pTextDecoratedPortionPrimitive2D->getTextEmphasisMark(),
pTextDecoratedPortionPrimitive2D->getEmphasisMarkAbove(), pTextDecoratedPortionPrimitive2D->getEmphasisMarkAbove(),
......
...@@ -403,7 +403,7 @@ namespace drawinglayer ...@@ -403,7 +403,7 @@ namespace drawinglayer
// define various other FontAttribute // define various other FontAttribute
aRetval.SetAlign(ALIGN_BASELINE); aRetval.SetAlign(ALIGN_BASELINE);
aRetval.SetCharSet(rFontAttribute.getSymbol() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE); 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.SetWeight(static_cast<FontWeight>(rFontAttribute.getWeight()));
aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE); aRetval.SetItalic(rFontAttribute.getItalic() ? ITALIC_NORMAL : ITALIC_NONE);
aRetval.SetOutline(rFontAttribute.getOutline()); aRetval.SetOutline(rFontAttribute.getOutline());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment