X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..d7ace8a929126af5d6d8afdcad22c8e6a6902263:/src/html/htmlwin.cpp?ds=sidebyside 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();