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:
parent
ab3c08cb53
commit
10824e3e26
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user