{
float times = 1.0f;
- if (mouse_mode == MouseRange) {
- if (selection->time.length() == 0) {
- return;
- }
- }
-
RegionSelection rs = get_regions_from_selection_and_entered ();
- if (mouse_mode != MouseRange && rs.empty()) {
+ if ( selection->time.length() == 0 && rs.empty()) {
return;
}
times = adjustment.get_value();
}
- if (mouse_mode == MouseRange) {
+ if (selection->time.length() != 0) {
duplicate_selection (times);
} else {
duplicate_some_regions (rs, times);
/* if range selection use first to last */
- if (mouse_mode == Editing::MouseRange) {
- if (!selection->time.empty()) {
- l->set_start (selection->time.start());
- l->set_end (selection->time.end_frame());
- }
+ if (!selection->time.empty()) {
+ l->set_start (selection->time.start());
+ l->set_end (selection->time.end_frame());
}
else {
if (!selection->regions.empty()) {
returns a single range.
*/
- if (mouse_mode == MouseRange && !selection->time.empty()) {
+ if (!selection->time.empty()) {
separate_regions_between (selection->time);
framepos_t m;
bool ignored;
- /* in range mode, use any existing selection */
+ /* if an explicit range exists, use it */
- if (mouse_mode == MouseRange && !selection->time.empty()) {
+ if (!selection->time.empty()) {
/* we know that these are ordered */
start = selection->time.start();
end = selection->time.end_frame();