[wxGTK2] Don't query native font for underlined, but return the set value - storing it natively would likely require

the usage of a PangoAttribute, and I'm not sure if that's even different than just storing it inside wxFontRefData.
Not investigating further as PangoAttribute addition would require ABI compatibility breakage anyhow.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2005-08-22 23:27:39 +00:00
parent b67d14bee0
commit 8c8c4b717a
2 changed files with 0 additions and 10 deletions

View File

@ -789,12 +789,7 @@ bool wxFont::GetUnderlined() const
{
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
#if wxUSE_PANGO
return M_FONTDATA->HasNativeFont() ? M_FONTDATA->m_nativeFontInfo.GetUnderlined()
: M_FONTDATA->m_underlined;
#else
return M_FONTDATA->m_underlined;
#endif
}
wxFontEncoding wxFont::GetEncoding() const

View File

@ -789,12 +789,7 @@ bool wxFont::GetUnderlined() const
{
wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
#if wxUSE_PANGO
return M_FONTDATA->HasNativeFont() ? M_FONTDATA->m_nativeFontInfo.GetUnderlined()
: M_FONTDATA->m_underlined;
#else
return M_FONTDATA->m_underlined;
#endif
}
wxFontEncoding wxFont::GetEncoding() const