diff --git a/include/wx/font.h b/include/wx/font.h index 27f42bbca8..b14281221e 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -318,6 +318,10 @@ protected: return (flags & wxFONTFLAG_UNDERLINED) != 0; } + static bool GetStrikethroughFromFlags(int flags) + { + return (flags & wxFONTFLAG_STRIKETHROUGH) != 0; + } private: // the currently default encoding: by default, it's the default system diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 06260392d9..5ff6a3a10f 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -299,7 +299,8 @@ wxFont::wxFont(int pointSize, GetStyleFromFlags(flags), GetWeightFromFlags(flags), GetUnderlinedFromFlags(flags), - false, face, encoding); + GetStrikethroughFromFlags(flags), + face, encoding); } bool wxFont::Create( int pointSize,