Honour wxFONTFLAG_STRIKETHROUGH in wxFont ctor taking flags as this is the
only way to create a strike-through font currently.
See #14559.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72487
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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
GetStyleFromFlags(flags),
GetWeightFromFlags(flags),
GetUnderlinedFromFlags(flags),
- false, face, encoding);
+ GetStrikethroughFromFlags(flags),
+ face, encoding);
}
bool wxFont::Create( int pointSize,