Correction for wxTextAttrCollectCommonAttributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14136,6 +14136,16 @@ void wxTextAttrCollectCommonAttributes(wxTextAttr& currentStyle, const wxTextAtt
|
||||
currentStyle.RemoveFlag(wxTEXT_ATTR_LINE_SPACING);
|
||||
}
|
||||
|
||||
if (attr.HasPageBreak() && !wxHasStyle(forbiddenFlags, wxTEXT_ATTR_PAGE_BREAK))
|
||||
{
|
||||
currentStyle.SetPageBreak(true);
|
||||
}
|
||||
else if (!attr.HasPageBreak() && currentStyle.HasPageBreak())
|
||||
{
|
||||
clashingAttr.AddFlag(wxTEXT_ATTR_PAGE_BREAK);
|
||||
currentStyle.RemoveFlag(wxTEXT_ATTR_PAGE_BREAK);
|
||||
}
|
||||
|
||||
if (attr.HasCharacterStyleName() && !wxHasStyle(forbiddenFlags, wxTEXT_ATTR_CHARACTER_STYLE_NAME))
|
||||
{
|
||||
if (currentStyle.HasCharacterStyleName())
|
||||
|
Reference in New Issue
Block a user