a wxCHECK added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-04-19 20:27:40 +00:00
parent 65d7724685
commit f861258fca
2 changed files with 84 additions and 88 deletions

View File

@ -399,12 +399,10 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
wxNotebookPage* nb_page = GetNotebookPage(page);
if (!nb_page) return FALSE;
wxCHECK_MSG( nb_page, FALSE, _T("SetPageText: invalid page index") );
nb_page->m_text = text;
if (nb_page->m_text.IsEmpty()) nb_page->m_text = _T("");
gtk_label_set(nb_page->m_label, nb_page->m_text.mbc_str());
return TRUE;

View File

@ -399,12 +399,10 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
wxNotebookPage* nb_page = GetNotebookPage(page);
if (!nb_page) return FALSE;
wxCHECK_MSG( nb_page, FALSE, _T("SetPageText: invalid page index") );
nb_page->m_text = text;
if (nb_page->m_text.IsEmpty()) nb_page->m_text = _T("");
gtk_label_set(nb_page->m_label, nb_page->m_text.mbc_str());
return TRUE;