Digital Mars fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4812,7 +4812,7 @@ wxRichTextAttr wxRichTextBuffer::GetStyleForNewParagraph(long pos, bool caretPos
|
||||
{
|
||||
wxRichTextAttr numberingAttr;
|
||||
if (FindNextParagraphNumber(para, numberingAttr))
|
||||
wxRichTextApplyStyle(attr, numberingAttr);
|
||||
wxRichTextApplyStyle(attr, (const wxRichTextAttr&) numberingAttr);
|
||||
}
|
||||
|
||||
return attr;
|
||||
@@ -6527,6 +6527,14 @@ bool wxRichTextApplyStyle(wxRichTextAttr& destStyle, const wxTextAttrEx& style)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxRichTextApplyStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style, wxRichTextAttr* compareWith)
|
||||
{
|
||||
wxTextAttrEx attr(destStyle);
|
||||
wxRichTextApplyStyle(attr, style, compareWith);
|
||||
destStyle = attr;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxRichTextApplyStyle(wxTextAttrEx& destStyle, const wxRichTextAttr& style, wxRichTextAttr* compareWith)
|
||||
{
|
||||
// Whole font. Avoiding setting individual attributes if possible, since
|
||||
|
Reference in New Issue
Block a user