diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/projects/k3baudioeditorwidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/projects/k3baudioeditorwidget.cpp b/src/projects/k3baudioeditorwidget.cpp index ed17c01..690b544 100644 --- a/src/projects/k3baudioeditorwidget.cpp +++ b/src/projects/k3baudioeditorwidget.cpp @@ -663,15 +663,16 @@ void K3bAudioEditorWidget::mousePressEvent( TQMouseEvent* e ) { m_draggedRange = 0; m_draggedMarker = 0; - bool end; - if( Range* r = findRangeEdge( e->pos(), &end ) ) { + Range* r = findRangeEdge( e->pos(), &end ); + + if (r) { m_draggedRange = r; m_draggingRangeEnd = end; setSelectedRange( r ); } else { - Range* r = findRange( e->pos() ); + r = findRange( e->pos() ); d->movedRange = r; d->lastMovePosition = posToMsf( e->pos().x() ); setSelectedRange( r ); |