projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82ea3d
)
Fix timeline zoom oddities after dragging a very small zoom rectangle.
author
Carl Hetherington
<cth@carlh.net>
Sun, 14 Feb 2021 23:42:55 +0000
(
00:42
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 15 Feb 2021 02:16:16 +0000
(
03:16
+0100)
src/wx/timeline.cc
patch
|
blob
|
history
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;
}