X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd05139a8023fd3e30476409fafbe04221c6d627..c2331d9b50dffbd3f2c0caf06b514fd4c96b3b94:/src/cocoa/font.cpp diff --git a/src/cocoa/font.cpp b/src/cocoa/font.cpp index 61c71aaac0..bfbed70f38 100644 --- a/src/cocoa/font.cpp +++ b/src/cocoa/font.cpp @@ -37,6 +37,8 @@ wxFontRefData::~wxFontRefData() // TODO: delete font data } +#define M_FONTDATA ((wxFontRefData*)m_refData) + bool wxFont::Create(const wxNativeFontInfo&) { return false; @@ -58,7 +60,10 @@ int wxFont::GetPointSize() const bool wxFont::GetUnderlined() const { - return false; + if(M_FONTDATA) + return M_FONTDATA->m_underlined; + else + return false; } int wxFont::GetStyle() const