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:
parent
ac5a362d8d
commit
42fe8f889e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user