projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix timeline zoom oddities after dragging a very small zoom rectangle.
[dcpomatic.git]
/
src
/
wx
/
timeline.cc
diff --git
a/src/wx/timeline.cc
b/src/wx/timeline.cc
index 5a98c829ad8815d3c0cd512c6db09ffd89ebfe72..3187792bea4ea30545341917ea72a063f43f4a55 100644
(file)
--- 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;
}