summaryrefslogtreecommitdiffstats
path: root/redhat/applications/k3b/k3b-3.5.13-fix_Range_r_3-gcc47.patch
blob: 3de442b619561043d03c0470f3734d034437e9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- k3b/src/projects/k3baudioeditorwidget.cpp
+++ k3b/src/projects/k3baudioeditorwidget.cpp	2012-04-18 16:48:00.794902506 -0500
@@ -663,15 +663,16 @@
 {
   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 );