]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
added wxListCtrl::AssignImageList
[wxWidgets.git] / src / html / htmlwin.cpp
index e3663cf9bed17771fb02b94fba2414ed4b5ca7cb..a0fd8ace9ffebbcab364948ed220c5dddc07be72 100644 (file)
@@ -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();