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:
parent
65d7724685
commit
f861258fca
@ -399,12 +399,10 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
|
|||||||
|
|
||||||
wxNotebookPage* nb_page = GetNotebookPage(page);
|
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;
|
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());
|
gtk_label_set(nb_page->m_label, nb_page->m_text.mbc_str());
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -399,12 +399,10 @@ bool wxNotebook::SetPageText( int page, const wxString &text )
|
|||||||
|
|
||||||
wxNotebookPage* nb_page = GetNotebookPage(page);
|
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;
|
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());
|
gtk_label_set(nb_page->m_label, nb_page->m_text.mbc_str());
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user