Skip to content

Commit

Permalink
Fix HasCharacter/PragraphAttributes to use the focus object
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
  • Loading branch information
JulianSmart committed Oct 21, 2013
1 parent ab3c08c commit 10824e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/wx/richtext/richtextctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextCtrl : public wxControl,
*/
virtual bool HasCharacterAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const
{
return GetBuffer().HasCharacterAttributes(range.ToInternal(), style);
return GetFocusObject()->HasCharacterAttributes(range.ToInternal(), style);
}

/**
Expand All @@ -1552,7 +1552,7 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextCtrl : public wxControl,
*/
virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const
{
return GetBuffer().HasParagraphAttributes(range.ToInternal(), style);
return GetFocusObject()->HasParagraphAttributes(range.ToInternal(), style);
}

/**
Expand Down

0 comments on commit 10824e3

Please sign in to comment.