diff options
author | David Robillard <d@drobilla.net> | 2011-06-01 17:00:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-06-01 17:00:29 +0000 |
commit | ed626628b54e67dd9621c08d82a42afaed00c7ac (patch) | |
tree | cf621db4c44f07f75a6e6a3fb7f572cd2c3622cd /gtk2_ardour/automation_region_view.cc | |
parent | a473d630eb165272992e90f8d854b1d66ec0be63 (diff) |
Delete trailing whitespace
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_region_view.cc')
-rw-r--r-- | gtk2_ardour/automation_region_view.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index 383c022bdb..18ce6cc646 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -98,23 +98,23 @@ AutomationRegionView::canvas_event (GdkEvent* ev) /* XXX: icky dcast to Editor */ e.drags()->set (new RubberbandSelectDrag (dynamic_cast<Editor*> (&e), group), ev); - + } else if (ev->type == GDK_BUTTON_RELEASE) { if (trackview.editor().drags()->active() && trackview.editor().drags()->end_grab (ev)) { return true; } - + double x = ev->button.x; double y = ev->button.y; - + /* convert to item coordinates in the time axis view */ automation_view()->canvas_display()->w2i (x, y); /* clamp y */ y = max (y, 0.0); y = min (y, _height - NAME_HIGHLIGHT_SIZE); - + add_automation_event (ev, trackview.editor().pixel_to_frame (x) - _region->position(), y); } @@ -137,7 +137,7 @@ AutomationRegionView::add_automation_event (GdkEvent *, framepos_t when, double assert(_line); AutomationTimeAxisView* const view = automation_view (); - + /* compute vertical fractional position */ const double h = trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2; @@ -158,11 +158,11 @@ AutomationRegionView::add_automation_event (GdkEvent *, framepos_t when, double /* XXX: hack! */ boost::shared_ptr<ARDOUR::MidiRegion> mr = boost::dynamic_pointer_cast<ARDOUR::MidiRegion> (_region); assert (mr); - + view->session()->commit_reversible_command ( new MementoCommand<ARDOUR::AutomationList> (new ARDOUR::MidiAutomationListBinder (mr->midi_source(), _parameter), &before, &after) ); - + view->session()->set_dirty (); } @@ -183,7 +183,7 @@ AutomationRegionView::set_position (framepos_t pos, void* src, double* ignored) if (_line) { _line->set_maximum_time (_region->length ()); } - + return RegionView::set_position(pos, src, ignored); } |