Remove unnecessary check for null notebook page
A non-empty notebook always has a non-null current page.
This commit is contained in:
parent
9eb62000f9
commit
3745f2c771
@ -175,11 +175,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
void MyFrame::FileSavePicture(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
#if wxUSE_FILEDLG
|
||||
MyPage *page = (MyPage *) m_notebook->GetCurrentPage();
|
||||
if (page == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
MyPage * const page = (MyPage *) m_notebook->GetCurrentPage();
|
||||
|
||||
wxFileDialog dialog(this, wxT("Save Picture as"), wxEmptyString,
|
||||
m_notebook->GetPageText(m_notebook->GetSelection()),
|
||||
|
Loading…
Reference in New Issue
Block a user