chris goddard's region list patch; port 2.X marker drag/move changes to 3.0; compilat...
[ardour.git] / gtk2_ardour / time_axis_view.cc
index f31ee1a10cb8c2016937029de76b175bd8496aa3..1f6d1f9da667cfbf6e8d13e5bc8692722fe73b5e 100644 (file)
@@ -1181,10 +1181,14 @@ TimeAxisView::color_handler ()
 TimeAxisView*
 TimeAxisView::covers_y_position (double y)
 {
+       if (y_position < 0) {
+               abort ();
+       }
+
        if (hidden()) {
                return 0;
        }
-
+       
        cerr << name() << " check for " << y << " within " << y_position << " and + " << height << endl;
 
        if (y_position <= y && y < (y_position + height)) {