From 495a248e540a587d74c72f738f1014cb65d84764 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 6 Feb 2008 19:18:40 +0000 Subject: [PATCH] Reset scroll position when clearing buffer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51573 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 f577276abf..252cfe22af 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -236,6 +236,8 @@ void wxRichTextCtrl::Clear() m_caretAtLineStart = false; m_selectionRange.SetRange(-2, -2); + Scroll(0,0); + if (!IsFrozen()) { LayoutContent();