Return more attributes from wxGTK wxTextCtrl::GetStyle()

Set "underlined" and "strikethrough" style attributes to correspond to the
ones really used too.

See #17523.
This commit is contained in:
Vadim Zeitlin 2016-06-14 21:43:38 +02:00
parent ac5a362d8d
commit 42fe8f889e

View File

@ -1789,6 +1789,11 @@ bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
if ( font.SetNativeFontInfo(wxString(pangoFontString)) )
style.SetFont(font);
if ( pattr->appearance.underline != PANGO_UNDERLINE_NONE )
style.SetFontUnderlined(true);
if ( pattr->appearance.strikethrough )
style.SetFontStrikethrough(true);
// TODO: set alignment, tabs and indents
}