QtCamRoiPrivate::primaryRegion() should return the index of rectangle not -1
authorMohammed Sameer <msameer@foolab.org>
Sat, 2 Feb 2013 20:35:46 +0000 (22:35 +0200)
committerMohammed Sameer <msameer@foolab.org>
Sat, 2 Feb 2013 20:35:46 +0000 (22:35 +0200)
lib/qtcamroi_p.h

index 6118da0..b2fa30a 100644 (file)
@@ -119,7 +119,7 @@ public:
       }
     }
 
-    return -1;
+    return index;
   }
 
 public slots: