summaryrefslogtreecommitdiffstats
path: root/src/projects/k3baudioeditorwidget.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-04-28 11:56:06 -0500
committerDarrell Anderson <[email protected]>2012-04-28 11:56:06 -0500
commit47da85fe986d13c15b94dd421018cd0c4570de94 (patch)
treed7f1b050a4380be2b65e7aefa755b2ecdbf457a8 /src/projects/k3baudioeditorwidget.cpp
parent1889a25462f71524c2b965467f1d4971d26a19cd (diff)
downloadk3b-47da85fe986d13c15b94dd421018cd0c4570de94.tar.gz
k3b-47da85fe986d13c15b94dd421018cd0c4570de94.zip
GCC 4.7 fixes.
Thanks to David C. Rankin.
Diffstat (limited to 'src/projects/k3baudioeditorwidget.cpp')
-rw-r--r--src/projects/k3baudioeditorwidget.cpp7
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 );