Mercurial > hg > sonic-visualiser
comparison main/OSCHandler.cpp @ 2380:efbf5ecb76b6
Fix #1941 Selecting duration of box doesn't work as expected
author | Chris Cannam |
---|---|
date | Thu, 17 Oct 2019 11:13:50 +0100 |
parents | 1e77e4ee27f5 |
children | f40cd7a512d4 |
comparison
equal
deleted
inserted
replaced
2379:4e2749c58e77 | 2380:efbf5ecb76b6 |
---|---|
297 Layer *layer = nullptr; | 297 Layer *layer = nullptr; |
298 if (pane) layer = pane->getSelectedLayer(); | 298 if (pane) layer = pane->getSelectedLayer(); |
299 if (layer) { | 299 if (layer) { |
300 int resolution; | 300 int resolution; |
301 layer->snapToFeatureFrame(pane, f0, resolution, | 301 layer->snapToFeatureFrame(pane, f0, resolution, |
302 Layer::SnapLeft); | 302 Layer::SnapLeft, -1); |
303 layer->snapToFeatureFrame(pane, f1, resolution, | 303 layer->snapToFeatureFrame(pane, f1, resolution, |
304 Layer::SnapRight); | 304 Layer::SnapRight, -1); |
305 } | 305 } |
306 | 306 |
307 } else if (message.getArgCount() == 1 && | 307 } else if (message.getArgCount() == 1 && |
308 message.getArg(0).canConvert(QVariant::String)) { | 308 message.getArg(0).canConvert(QVariant::String)) { |
309 | 309 |