From df00ba55e05fd146d20fb7e4a418b90e59c17cf8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:41:57 +0000 Subject: [PATCH] adjust code to apply the wx coding guidelines git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/font.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/x11/font.cpp b/src/x11/font.cpp index 758bb53c4c..1232a29d7f 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -882,18 +882,18 @@ void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info ) // for pango layout, such as "strikethrough" and "underline". bool wxFont::SetPangoAttrs(PangoLayout* layout) const { - if (!IsOk() || !(GetUnderlined() || GetStrikethrough())) + if ( !IsOk() || !(GetUnderlined() || GetStrikethrough()) ) return false; PangoAttrList* attrs = pango_attr_list_new(); PangoAttribute* a; - if (GetUnderlined()) + if ( GetUnderlined() ) { a = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE); pango_attr_list_insert(attrs, a); } - if (GetStrikethrough()) + if ( GetStrikethrough() ) { a = pango_attr_strikethrough_new(true); pango_attr_list_insert(attrs, a);