diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 84473ce9cc..a229acc32a 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -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")); } }