Fix offset of imports.

This commit is contained in:
Jonathan Moore Liles 2008-03-05 18:36:20 -06:00
parent 65606b5fb3
commit e70ff0b101
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ Audio_Track::handle ( int m )
return 0;
}
// FIXME: account for width of track header.
Region *r = new Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() ) );
Region *r = new Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() - x() ) );
redraw();
return 1;