X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c9a70ddd458916bb57b28936e9e34965d7deb0b..f32eb96401af815f5662b715330802c2e6bfa452:/include/wx/msgdlg.h diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 3e52b9c68d..6d65fc75aa 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -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