wxRTC no longer derives from wxTextCtrlBase; added wxRichTextAttr deriving from wxTextAttr
with CSS-like attributes for future developments; removed image-specific attributes object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -188,9 +188,11 @@ bool wxTextAttr::operator== (const wxTextAttr& attr) const
|
||||
GetURL() == attr.GetURL();
|
||||
}
|
||||
|
||||
// Partial equality test taking flags into account
|
||||
bool wxTextAttr::EqPartial(const wxTextAttr& attr, int flags) const
|
||||
// Partial equality test. Only returns false if an attribute doesn't match.
|
||||
bool wxTextAttr::EqPartial(const wxTextAttr& attr) const
|
||||
{
|
||||
int flags = attr.GetFlags();
|
||||
|
||||
if ((flags & wxTEXT_ATTR_TEXT_COLOUR) && GetTextColour() != attr.GetTextColour())
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user