13
0

Fix potential pop of empty enter stack.

This commit is contained in:
David Robillard 2014-12-27 12:26:55 -05:00
parent 962be01ae8
commit 31641179f9

View File

@ -1651,7 +1651,9 @@ Editor::leave_handler (ArdourCanvas::Item* item, GdkEvent*, ItemType item_type)
bool is_start; bool is_start;
bool ret = true; bool ret = true;
_enter_stack.pop_back(); if (!_enter_stack.empty()) {
_enter_stack.pop_back();
}
switch (item_type) { switch (item_type) {
case ControlPointItem: case ControlPointItem: