Fix HasCharacter/PragraphAttributes to use the focus object

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2013-10-21 13:10:22 +00:00
parent ab3c08cb53
commit 10824e3e26

View File

@ -1541,7 +1541,7 @@ public:
*/
virtual bool HasCharacterAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const
{
return GetBuffer().HasCharacterAttributes(range.ToInternal(), style);
return GetFocusObject()->HasCharacterAttributes(range.ToInternal(), style);
}
/**
@ -1552,7 +1552,7 @@ public:
*/
virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const
{
return GetBuffer().HasParagraphAttributes(range.ToInternal(), style);
return GetFocusObject()->HasParagraphAttributes(range.ToInternal(), style);
}
/**