Fix for scroll position being changed when partial layout is done

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2012-07-08 10:28:27 +00:00
parent e9fed11291
commit 5a0259e657

View 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();
}