summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas_events.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-02-02 16:23:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-02-02 16:23:02 +0000
commit2cc255ac0844b6e1fab69c08a524d5a9963bd713 (patch)
tree88cb77266990e8e6f9346f3961e918fe13464d3e /gtk2_ardour/editor_canvas_events.cc
parentaf90dc2bae772cd63d6078e24fb5ead6832bb7eb (diff)
fix possible logic error and make logic line up with comment
git-svn-id: svn://localhost/ardour2/branches/3.0@11424 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas_events.cc')
-rw-r--r--gtk2_ardour/editor_canvas_events.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc
index 0f07875eac..71f5a9fb21 100644
--- a/gtk2_ardour/editor_canvas_events.cc
+++ b/gtk2_ardour/editor_canvas_events.cc
@@ -1082,8 +1082,8 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & /*c*/,
return true;
}
- if (boost::dynamic_pointer_cast<MidiRegion> (region_copy) == 0 &&
- dynamic_cast<MidiTimeAxisView*> (tv.first) != 0) {
+ if (boost::dynamic_pointer_cast<MidiRegion> (region_copy) != 0 &&
+ dynamic_cast<MidiTimeAxisView*> (tv.first) == 0) {
/* MIDI -> non-MIDI */
return true;