Fix region dragging.
git-svn-id: svn://localhost/ardour2/branches/3.0@3770 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b87ca000f8
commit
68216b315e
@ -1181,16 +1181,10 @@ TimeAxisView::color_handler ()
|
|||||||
TimeAxisView*
|
TimeAxisView*
|
||||||
TimeAxisView::covers_y_position (double y)
|
TimeAxisView::covers_y_position (double y)
|
||||||
{
|
{
|
||||||
if (y_position < 0) {
|
|
||||||
abort ();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hidden()) {
|
if (hidden()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cerr << name() << " check for " << y << " within " << y_position << " and + " << height << endl;
|
|
||||||
|
|
||||||
if (y_position <= y && y < (y_position + height)) {
|
if (y_position <= y && y < (y_position + height)) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user