]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for scroll position being changed when partial layout is done
authorJulian Smart <julian@anthemion.co.uk>
Sun, 8 Jul 2012 10:28:27 +0000 (10:28 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 8 Jul 2012 10:28:27 +0000 (10:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index e0e80081a1d1acaed8b999e5a327bb88c54d54db..3d7a97adb4d8246b0b25b2188907f98f35b0e564 100644 (file)
@@ -3896,7 +3896,7 @@ bool wxRichTextCtrl::LayoutContent(bool onlyVisibleRect)
         GetBuffer().Layout(dc, context, availableSpace, availableSpace, flags);
         GetBuffer().Invalidate(wxRICHTEXT_NONE);
 
-        if (!IsFrozen())
+        if (!IsFrozen() && !onlyVisibleRect)
             SetupScrollbars();
     }