]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/wizard.cpp
removed static methods from wxAppTraitsBase, this doesn't work well in non-monolithic...
[wxWidgets.git] / src / generic / wizard.cpp
index fa333394811c24762fd4f2f14e7be24f267192a5..91a35840b35cfd0e10e48faef3b159949bec0213 100644 (file)
@@ -472,7 +472,7 @@ void wxWizard::OnBackOrNext(wxCommandEvent& event)
     // ask the current page first: notice that we do it before calling
     // GetNext/Prev() because the data transfered from the controls of the page
     // may change the value returned by these methods
-    if ( m_page && !m_page->TransferDataFromWindow() )
+    if ( m_page && (!m_page->Validate() || !m_page->TransferDataFromWindow()) )
     {
         // the page data is incorrect, don't do anything
         return;