]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/wizard.cpp
Rewrote large parts of the non-DDE IPC stuff (wxTCPServer, wxTCPClient,
[wxWidgets.git] / src / generic / wizard.cpp
index c6ff8dc19b1c899db7b47981f991780ecb329679..7981bf47aa3d2c234a65c37d123f5e386506095c 100644 (file)
@@ -240,10 +240,14 @@ bool wxWizard::ShowPage(wxWizardPage *page, bool goingForward)
     // and update the buttons state
     m_btnPrev->Enable(m_page->GetPrev() != (wxWizardPage *)NULL);
 
-    if ( btnLabelWasNext != (m_page->GetNext() != (wxWizardPage *)NULL) )
+    bool hasNext = m_page->GetNext() != (wxWizardPage *)NULL;
+    if ( btnLabelWasNext != hasNext )
     {
         // need to update
-        m_btnNext->SetLabel(btnLabelWasNext ? _("&Finish") : _("&Next >"));
+        if (btnLabelWasNext)
+            m_btnNext->SetLabel(_("&Finish"));
+        else
+            m_btnNext->SetLabel(_("&Next >"));
     }
     // nothing to do: the label was already correct