]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
escape _ in LaTeX sources
[wxWidgets.git] / src / common / sizer.cpp
index 0fc04d7c37e71ff850b2cf5d636a6071237cd953..66a15254319762ba59fa1d35d1abc88041db13be 100644 (file)
@@ -2022,7 +2022,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"));
             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"));
             }
         }
 
             }
         }