projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ad27cc
)
When removing an item which is event-insensitive, there is no need to repick the...
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 20 Jan 2014 15:53:58 +0000
(10:53 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 20 Jan 2014 15:53:58 +0000
(10:53 -0500)
This fixes crashes associated with ghost notes in midi regions.
libs/canvas/canvas.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/canvas.cc
b/libs/canvas/canvas.cc
index bb664afa95e7f3b7314b65d55d8f40ea7b2df408..2cf0a7ea1592860102666a493abe393077455879 100644
(file)
--- a/
libs/canvas/canvas.cc
+++ b/
libs/canvas/canvas.cc
@@
-577,7
+577,13
@@
GtkCanvas::item_going_away (Item* item, boost::optional<Rect> bounding_box)
_focused_item = 0;
}
- pick_current_item (0); // no mouse state
+ /* an item which ignores events can never be the current item
+ so we do not need to repick the current item.
+ */
+
+ if (!item->ignore_events()) {
+ pick_current_item (0); // no mouse state
+ }
}