From 10824e3e26efca1c272d5081352cfab4bb48086e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 21 Oct 2013 13:10:22 +0000 Subject: [PATCH] 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 --- include/wx/richtext/richtextctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/richtext/richtextctrl.h b/include/wx/richtext/richtextctrl.h index a23ff724b3..eb0adc0d44 100644 --- a/include/wx/richtext/richtextctrl.h +++ b/include/wx/richtext/richtextctrl.h @@ -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); } /**