From b850bbe616d85e7350d5361504b8ba184eb8d895 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 6 Feb 2008 19:18:25 +0000 Subject: [PATCH] Reset scroll position when clearing buffer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 3ae73dd857..7356fbfa7a 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -256,6 +256,8 @@ void wxRichTextCtrl::Clear() m_caretAtLineStart = false; m_selectionRange.SetRange(-2, -2); + Scroll(0,0); + if (m_freezeCount == 0) { LayoutContent();