mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
fix duplicate, and clarify its behaviour in smart mode; includes a fix for TimeSelection::length() which didn't account for "no selection" in its return value
git-svn-id: svn://localhost/ardour2/branches/3.0@13607 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
13a7612ef6
commit
ba8953605d
2 changed files with 13 additions and 2 deletions
|
|
@ -3311,8 +3311,15 @@ Editor::duplicate_range (bool with_dialog)
|
|||
times = adjustment.get_value();
|
||||
}
|
||||
|
||||
if (selection->time.length() != 0) {
|
||||
duplicate_selection (times);
|
||||
if ((current_mouse_mode() == Editing::MouseRange)) {
|
||||
if (selection->time.length()) {
|
||||
duplicate_selection (times);
|
||||
}
|
||||
} else if (get_smart_mode()) {
|
||||
if (selection->time.length()) {
|
||||
duplicate_selection (times);
|
||||
} else
|
||||
duplicate_some_regions (rs, times);
|
||||
} else {
|
||||
duplicate_some_regions (rs, times);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue