]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxSTOCK_FOR_BUTTON for message dialog custom labels.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jul 2009 16:41:16 +0000 (16:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 25 Jul 2009 16:41:16 +0000 (16:41 +0000)
This allows to use wxID_PRINT as a custom label without getting an unwanted ellipsis at the end.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msgdlg.h

index 3e52b9c68dd4084def1d0f0b75072025e8743ee2..6d65fc75aaa1e9bda0a95b1caa73d11d94dcb772 100644 (file)
@@ -68,8 +68,9 @@ public:
         // stock items id support
         wxString GetAsString() const
         {
-            return m_stockId == wxID_NONE ? m_label
-                                          : wxGetStockLabel(m_stockId);
+            return m_stockId == wxID_NONE
+                    ? m_label
+                    : wxGetStockLabel(m_stockId, wxSTOCK_FOR_BUTTON);
         }
 
         // return the stock id or wxID_NONE if this is not a stock label