Don't declare wxCairoFontData::m_underlined unnecessarily.
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
This commit is contained in:
@@ -301,7 +301,6 @@ private :
|
|||||||
cairo_font_weight_t weight);
|
cairo_font_weight_t weight);
|
||||||
|
|
||||||
double m_size;
|
double m_size;
|
||||||
bool m_underlined;
|
|
||||||
double m_red;
|
double m_red;
|
||||||
double m_green;
|
double m_green;
|
||||||
double m_blue;
|
double m_blue;
|
||||||
@@ -310,6 +309,7 @@ private :
|
|||||||
cairo_font_face_t *m_font;
|
cairo_font_face_t *m_font;
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
PangoFontDescription* m_font;
|
PangoFontDescription* m_font;
|
||||||
|
bool m_underlined;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// These members are used when the font is created from its face name and
|
// These members are used when the font is created from its face name and
|
||||||
@@ -850,12 +850,12 @@ wxCairoFontData::wxCairoFontData( wxGraphicsRenderer* renderer, const wxFont &fo
|
|||||||
InitColour(col);
|
InitColour(col);
|
||||||
|
|
||||||
m_size = font.GetPointSize();
|
m_size = font.GetPointSize();
|
||||||
m_underlined = font.GetUnderlined();
|
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
m_font = cairo_quartz_font_face_create_for_cgfont( font.OSXGetCGFont() );
|
m_font = cairo_quartz_font_face_create_for_cgfont( font.OSXGetCGFont() );
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
m_font = pango_font_description_copy( font.GetNativeFontInfo()->description );
|
m_font = pango_font_description_copy( font.GetNativeFontInfo()->description );
|
||||||
|
m_underlined = font.GetUnderlined();
|
||||||
#else
|
#else
|
||||||
InitFontComponents
|
InitFontComponents
|
||||||
(
|
(
|
||||||
@@ -886,7 +886,8 @@ wxCairoFontData::wxCairoFontData(wxGraphicsRenderer* renderer,
|
|||||||
m_font = NULL;
|
m_font = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
InitFontComponents
|
InitFontComponents
|
||||||
(
|
(
|
||||||
|
Reference in New Issue
Block a user