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
This commit is contained in:
Vadim Zeitlin 2014-09-23 17:41:57 +00:00
parent 96413683c5
commit df00ba55e0

View File

@ -882,18 +882,18 @@ void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info )
// for pango layout, such as "strikethrough" and "underline". // for pango layout, such as "strikethrough" and "underline".
bool wxFont::SetPangoAttrs(PangoLayout* layout) const bool wxFont::SetPangoAttrs(PangoLayout* layout) const
{ {
if (!IsOk() || !(GetUnderlined() || GetStrikethrough())) if ( !IsOk() || !(GetUnderlined() || GetStrikethrough()) )
return false; return false;
PangoAttrList* attrs = pango_attr_list_new(); PangoAttrList* attrs = pango_attr_list_new();
PangoAttribute* a; PangoAttribute* a;
if (GetUnderlined()) if ( GetUnderlined() )
{ {
a = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE); a = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE);
pango_attr_list_insert(attrs, a); pango_attr_list_insert(attrs, a);
} }
if (GetStrikethrough()) if ( GetStrikethrough() )
{ {
a = pango_attr_strikethrough_new(true); a = pango_attr_strikethrough_new(true);
pango_attr_list_insert(attrs, a); pango_attr_list_insert(attrs, a);