make per-region note-tracking in MidiPlaylist work correctly, or something very close...
[ardour.git] / gtk2_ardour / canvas-hit.cc
index c9908ac60c4577cb500aad6de064e11454a28570..9075eaaddd59388b97e1390ec560b4713de6fcf3 100644 (file)
@@ -19,42 +19,10 @@ CanvasHit::on_event(GdkEvent* ev)
        }
 }
 
-void 
+void
 CanvasHit::move_event(double dx, double dy)
 {
-       move (dx, dy);
-
-#if 0
-       cerr << "Move event by " << dx << " " << dy << endl;
-
-       points->coords[0] += dx;
-       points->coords[1] += dy;
-
-       points->coords[2] += dx;
-       points->coords[3] += dy;
-
-       points->coords[4] += dx;
-       points->coords[5] += dy;
-
-       points->coords[6] += dx;
-       points->coords[7] += dy;
-
-       cerr << "Coords now " << endl
-            << '\t' << points->coords[0] << ", " << points->coords[1] << endl
-            << '\t' << points->coords[2] << ", " << points->coords[3] << endl
-            << '\t' << points->coords[4] << ", " << points->coords[5] << endl
-            << '\t' << points->coords[6] << ", " << points->coords[7] << endl
-               ;
-
-       if (_text) {
-               _text->property_x() = _text->property_x() + dx;
-               _text->property_y() = _text->property_y() + dy;
-       }
-
-       hide ();
-       show ();
-       // request_update ();
-#endif
+       move_by (dx, dy);
 }
 
 } // namespace Gnome