X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/873fd4af5f9ed1f078636af1ae9ea21bbed06b5a..a4c721ee38d6e7656765a5188f89fe59c854058e:/src/cocoa/font.cpp diff --git a/src/cocoa/font.cpp b/src/cocoa/font.cpp index 7b2bbfecea..bfbed70f38 100644 --- a/src/cocoa/font.cpp +++ b/src/cocoa/font.cpp @@ -37,7 +37,7 @@ wxFontRefData::~wxFontRefData() // TODO: delete font data } -#define M_FONTDATA (wxFontRefData*)m_refData) +#define M_FONTDATA ((wxFontRefData*)m_refData) bool wxFont::Create(const wxNativeFontInfo&) { @@ -60,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