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

@ -209,6 +209,7 @@ wxMSW:
- Fix crash in wxD2DContext when using non-MSVC compiler (iwbnwif).
- Notify shell about the changes done by wxMimeTypesManager (Maarten Bent).
- Fix wxPrintf() and friends when using MinGW with ANSI stdio option.
- Fix strike-through support in wxFont with GDI+ (David Vanderson).
wxOSX/Cocoa:

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;