fix setting the font for a single-line text control (bug 508169)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1004,7 +1004,7 @@ bool wxTextCtrl::SetFont( const wxFont &font )
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") );
|
wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") );
|
||||||
|
|
||||||
if ( !wxWindowBase::SetFont(font) )
|
if ( !wxTextCtrlBase::SetFont(font) )
|
||||||
{
|
{
|
||||||
// font didn't change, nothing to do
|
// font didn't change, nothing to do
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@@ -1004,7 +1004,7 @@ bool wxTextCtrl::SetFont( const wxFont &font )
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") );
|
wxCHECK_MSG( m_text != NULL, FALSE, wxT("invalid text ctrl") );
|
||||||
|
|
||||||
if ( !wxWindowBase::SetFont(font) )
|
if ( !wxTextCtrlBase::SetFont(font) )
|
||||||
{
|
{
|
||||||
// font didn't change, nothing to do
|
// font didn't change, nothing to do
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user