This member was only used in wxGTK-specific code but it was declared for all
platforms which was unnecessary and confusing.
Move its declaration in wxGTK-only section of the class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69361
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
cairo_font_weight_t weight);
double m_size;
cairo_font_weight_t weight);
double m_size;
double m_red;
double m_green;
double m_blue;
double m_red;
double m_green;
double m_blue;
cairo_font_face_t *m_font;
#elif defined(__WXGTK__)
PangoFontDescription* m_font;
cairo_font_face_t *m_font;
#elif defined(__WXGTK__)
PangoFontDescription* m_font;
#endif
// These members are used when the font is created from its face name and
#endif
// These members are used when the font is created from its face name and
InitColour(col);
m_size = font.GetPointSize();
InitColour(col);
m_size = font.GetPointSize();
- m_underlined = font.GetUnderlined();
#ifdef __WXMAC__
m_font = cairo_quartz_font_face_create_for_cgfont( font.OSXGetCGFont() );
#elif defined(__WXGTK__)
m_font = pango_font_description_copy( font.GetNativeFontInfo()->description );
#ifdef __WXMAC__
m_font = cairo_quartz_font_face_create_for_cgfont( font.OSXGetCGFont() );
#elif defined(__WXGTK__)
m_font = pango_font_description_copy( font.GetNativeFontInfo()->description );
+ m_underlined = font.GetUnderlined();
#else
InitFontComponents
(
#else
InitFontComponents
(
- m_underlined = (flags & wxFONTFLAG_UNDERLINED) != 0;
+ // There is no need to set m_underlined under wxGTK in this case, it can
+ // only be used if m_font != NULL.