Fix strike-through support in wxFont with GDI+

Pass down the strike-through flag to GDI+ (see #9907).

Closes #17372.
This commit is contained in:
David Vanderson
2016-02-13 12:49:21 +01:00
committed by Vadim Zeitlin
parent d7d5bcaae6
commit ccd361c98f
2 changed files with 3 additions and 0 deletions

View File

@@ -962,6 +962,8 @@ wxGDIPlusFontData::wxGDIPlusFontData( wxGraphicsRenderer* renderer,
style |= FontStyleItalic;
if ( font.GetUnderlined() )
style |= FontStyleUnderline;
if ( font.GetStrikethrough() )
style |= FontStyleStrikeout;
if ( font.GetWeight() == wxFONTWEIGHT_BOLD )
style |= FontStyleBold;