don't allow setting an invalid font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1580,6 +1580,8 @@ void wxWindowDC::Clear()
|
|||||||
|
|
||||||
void wxWindowDC::SetFont( const wxFont &font )
|
void wxWindowDC::SetFont( const wxFont &font )
|
||||||
{
|
{
|
||||||
|
wxCHECK_RET( font.Ok(), _T("invalid font in wxWindowDC::SetFont") );
|
||||||
|
|
||||||
m_font = font;
|
m_font = font;
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
// fix fontdesc?
|
// fix fontdesc?
|
||||||
|
@@ -1580,6 +1580,8 @@ void wxWindowDC::Clear()
|
|||||||
|
|
||||||
void wxWindowDC::SetFont( const wxFont &font )
|
void wxWindowDC::SetFont( const wxFont &font )
|
||||||
{
|
{
|
||||||
|
wxCHECK_RET( font.Ok(), _T("invalid font in wxWindowDC::SetFont") );
|
||||||
|
|
||||||
m_font = font;
|
m_font = font;
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
// fix fontdesc?
|
// fix fontdesc?
|
||||||
|
Reference in New Issue
Block a user