use enumerations instead of integers for wxFont style/weight/family
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5686,7 +5686,7 @@ void wxRichTextBuffer::ClearStyleStack()
|
||||
bool wxRichTextBuffer::BeginBold()
|
||||
{
|
||||
wxTextAttr attr;
|
||||
attr.SetFontWeight(wxBOLD);
|
||||
attr.SetFontWeight(wxFONTWEIGHT_BOLD);
|
||||
|
||||
return BeginStyle(attr);
|
||||
}
|
||||
@@ -5695,7 +5695,7 @@ bool wxRichTextBuffer::BeginBold()
|
||||
bool wxRichTextBuffer::BeginItalic()
|
||||
{
|
||||
wxTextAttr attr;
|
||||
attr.SetFontStyle(wxITALIC);
|
||||
attr.SetFontStyle(wxFONTSTYLE_ITALIC);
|
||||
|
||||
return BeginStyle(attr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user