From 52f016abed86eb0f0fc701dfc038dcf212758874 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 21 Apr 2013 22:59:34 -0700 Subject: [PATCH] Timeline: Fix offset of drag and drop file imports. --- timeline/src/Audio_Sequence.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeline/src/Audio_Sequence.C b/timeline/src/Audio_Sequence.C index 0cff62a..5dce3d2 100644 --- a/timeline/src/Audio_Sequence.C +++ b/timeline/src/Audio_Sequence.C @@ -329,7 +329,7 @@ Audio_Sequence::handle ( int m ) free( file ); Audio_Region *r = - new Audio_Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() - x() ) ); + new Audio_Region( c, this, timeline->xoffset + timeline->x_to_ts( Fl::event_x() - drawable_x() ) ); r->log_create();