From 47da85fe986d13c15b94dd421018cd0c4570de94 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 28 Apr 2012 11:56:06 -0500 Subject: [PATCH] GCC 4.7 fixes. Thanks to David C. Rankin. --- src/projects/k3baudioeditorwidget.cpp | 7 ++++--- 1 file 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 );