]> git.saurik.com Git - wxWidgets.git/commitdiff
Reset scroll position when clearing buffer
authorJulian Smart <julian@anthemion.co.uk>
Wed, 6 Feb 2008 19:18:40 +0000 (19:18 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 6 Feb 2008 19:18:40 +0000 (19:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index f577276abf9f53b7d2ce05b7534b35d6334347aa..252cfe22afc281c70f3c4f6b636791f3abecb948 100644 (file)
@@ -236,6 +236,8 @@ void wxRichTextCtrl::Clear()
     m_caretAtLineStart = false;
     m_selectionRange.SetRange(-2, -2);
 
+    Scroll(0,0);
+
     if (!IsFrozen())
     {
         LayoutContent();