X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29dbfacee2a6bc6978d6224efea9a31a1a5a2649..47009083ce5da26c6125fae8947e0615b202a81b:/src/richtext/richtextfontpage.cpp diff --git a/src/richtext/richtextfontpage.cpp b/src/richtext/richtextfontpage.cpp index 83215b5068..87a3fb7830 100644 --- a/src/richtext/richtextfontpage.cpp +++ b/src/richtext/richtextfontpage.cpp @@ -314,11 +314,11 @@ bool wxRichTextFontPage::TransferDataFromWindow() if (m_styleCtrl->GetSelection() != wxNOT_FOUND) { - int style; + wxFontStyle style; if (m_styleCtrl->GetStringSelection() == _("Italic")) - style = wxITALIC; + style = wxFONTSTYLE_ITALIC; else - style = wxNORMAL; + style = wxFONTSTYLE_NORMAL; attr->SetFontStyle(style); } @@ -327,11 +327,11 @@ bool wxRichTextFontPage::TransferDataFromWindow() if (m_weightCtrl->GetSelection() != wxNOT_FOUND) { - int weight; + wxFontWeight weight; if (m_weightCtrl->GetStringSelection() == _("Bold")) - weight = wxBOLD; + weight = wxFONTWEIGHT_BOLD; else - weight = wxNORMAL; + weight = wxFONTWEIGHT_NORMAL; attr->SetFontWeight(weight); }