diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-04 11:18:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-04 11:18:21 +0100 |
| commit | 9e065519743ff8eac63207552a97314febca24c7 (patch) | |
| tree | 8886d73051c91b026321fc0fb71356b3e87e5222 /src/wx/timeline.cc | |
| parent | 792ffde2a810284504a241df70ac3e407a5e05c6 (diff) | |
Fix tool crash; try to fix linked scrolling.
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 017d27dfb..ba528c007 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -808,7 +808,9 @@ void Timeline::scrolled (wxScrollWinEvent& ev) { if (ev.GetOrientation() == wxVERTICAL) { - _labels_canvas->Scroll (0, ev.GetPosition ()); + int x, y; + _main_canvas->GetViewState (&x, &y); + _labels_canvas->Scroll (0, y); } ev.Skip (); } |
