From bbda1088f7995eec084f450141d1071052473106 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 26 Sep 2000 21:54:29 +0000 Subject: [PATCH] fixed bug in wxHtmlWindow: HistoryBack/Forward now correctly preserves last entry's scrolled position git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlwin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index e3663cf9be..a0fd8ace9f 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -365,6 +365,12 @@ bool wxHtmlWindow::HistoryBack() if (m_HistoryPos < 1) return FALSE; + // store scroll position into history item: + int x, y; + ViewStart(&x, &y); + m_History[m_HistoryPos].SetPos(y); + + // go to previous position: m_HistoryPos--; l = m_History[m_HistoryPos].GetPage(); -- 2.45.2