projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed EditLabel() for wxLC_REPORT mode
[wxWidgets.git]
/
src
/
html
/
htmlwin.cpp
diff --git
a/src/html/htmlwin.cpp
b/src/html/htmlwin.cpp
index e3663cf9bed17771fb02b94fba2414ed4b5ca7cb..a0fd8ace9ffebbcab364948ed220c5dddc07be72 100644
(file)
--- a/
src/html/htmlwin.cpp
+++ b/
src/html/htmlwin.cpp
@@
-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--;
l = m_History[m_HistoryPos].GetPage();
m_HistoryPos--;
l = m_History[m_HistoryPos].GetPage();