summaryrefslogtreecommitdiff
path: root/src/wx/timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-15 00:42:55 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-15 03:16:16 +0100
commit88c1642d83bed44a75c4fe6827c5f02fc50141c2 (patch)
tree380ada58e322702fe6a010d714824db84ebbef1d /src/wx/timeline.cc
parentc82ea3df77d7b5d341d8ec0e6773eb8029ccb4bc (diff)
Fix timeline zoom oddities after dragging a very small zoom rectangle.
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 5a98c829a..3187792be 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -625,6 +625,8 @@ Timeline::left_up_zoom (wxMouseEvent& ev)
if ((bottom_right.x - top_left.x) < 8 || (bottom_right.y - top_left.y) < 8) {
/* Very small zoom rectangle: we assume it wasn't intentional */
+ _zoom_point = optional<wxPoint> ();
+ Refresh ();
return;
}