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
This commit is contained in:
@@ -365,6 +365,12 @@ bool wxHtmlWindow::HistoryBack()
|
|||||||
|
|
||||||
if (m_HistoryPos < 1) return FALSE;
|
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--;
|
m_HistoryPos--;
|
||||||
|
|
||||||
l = m_History[m_HistoryPos].GetPage();
|
l = m_History[m_HistoryPos].GetPage();
|
||||||
|
Reference in New Issue
Block a user