Fix smart mode cursor on audio regions.
This commit is contained in:
parent
5d1df86343
commit
486d47db0e
|
@ -1188,9 +1188,13 @@ Editor::which_canvas_cursor(ItemType type) const
|
|||
|
||||
switch (type) {
|
||||
case RegionItem:
|
||||
case RegionViewNameHighlight:
|
||||
case RegionViewName:
|
||||
case WaveItem:
|
||||
/* We don't choose a cursor for these items on top of a region view,
|
||||
because this would push a new context on the enter stack which
|
||||
means switching the region context for things like smart mode
|
||||
won't actualy change the cursor. */
|
||||
// case RegionViewNameHighlight:
|
||||
// case RegionViewName:
|
||||
// case WaveItem:
|
||||
case StreamItem:
|
||||
case AutomationTrackItem:
|
||||
cursor = which_track_cursor ();
|
||||
|
|
|
@ -2316,7 +2316,7 @@ Editor::update_join_object_range_location (double y)
|
|||
|
||||
ArdourCanvas::Duple const item_space = entered_regionview->get_canvas_group()->canvas_to_item (ArdourCanvas::Duple (0, y));
|
||||
double const c = item_space.y / entered_regionview->height();
|
||||
|
||||
|
||||
_join_object_range_state = c <= 0.5 ? JOIN_OBJECT_RANGE_RANGE : JOIN_OBJECT_RANGE_OBJECT;
|
||||
|
||||
Editor::EnterContext* ctx = get_enter_context(RegionItem);
|
||||
|
|
Loading…
Reference in New Issue