samplepos_t before;
samplepos_t after;
- samplepos_t test;
+ samplepos_t test = presnap;
before = after = max_samplepos;
}
if (before == max_samplepos && after == max_samplepos) {
- /* No smpte to snap to, so just don't snap */
+ /* No grid to snap to, so just don't snap */
return presnap;
} else if (before == max_samplepos) {
test = after;
if (Keyboard::modifier_state_contains (event->state, Keyboard::PrimaryModifier)) {
TimeAxisView* tv = &rv.get_time_axis_view();
- RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*>(tv);
samplepos_t where = get_preferred_edit_position();
selection->set (tvl);
- if (!get_smart_mode () || !mouse_mode == Editing::MouseObject) {
+ if (!get_smart_mode () || !(mouse_mode == Editing::MouseObject) ) {
set_mouse_mode (Editing::MouseRange, false);
}
}
samplepos_t _leftmost; ///< the earliest sample we ever viewed
samplepos_t _rightmost; ///< the latest sample we ever viewed
- /** fraction of the session length by which the overview size should extend past the start and end markers */
- double _overhang_fraction;
-
double _x_scale; ///< pixels per sample for the x axis of the pixmap
double _track_height;
double _last_playhead;
void
MidiRegionView::apply_diff (bool as_subcommand, bool was_copy)
{
- bool add_or_remove;
bool commit = false;
if (!_note_diff_command) {
return;
}
- if (!was_copy && (add_or_remove = _note_diff_command->adds_or_removes())) {
+ bool add_or_remove = _note_diff_command->adds_or_removes();
+
+ if (!was_copy && add_or_remove) {
// Mark all selected notes for selection when model reloads
for (Selection::iterator i = _selection.begin(); i != _selection.end(); ++i) {
_marked_for_selection.insert((*i)->note());
ARDOUR::SessionHandlePtr* session_handle();
private:
- ProcessorBox* _processor_box;
boost::weak_ptr<ARDOUR::Processor> _processor;
void processor_going_away ();