Fix runtime crash in wxStdDialogButtonSizer. Don't set the label on a

button we don't have.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-02-28 21:40:32 +00:00
parent 49baf35105
commit 483efacde6

View File

@@ -2025,7 +2025,8 @@ void wxStdDialogButtonSizer::Realize()
if (m_buttonAffirmative->GetId() == wxID_SAVE){
// these buttons have set labels under Mac so we should use them
m_buttonAffirmative->SetLabel(_("Save"));
m_buttonNegative->SetLabel(_("Don't Save"));
if (m_buttonNegative)
m_buttonNegative->SetLabel(_("Don't Save"));
}
}