Ignore the artist size limit. Will fix if someone complains!
[harmattan/cameraplus] / lib / qtcamroi_p.h
index 6118da0..88a492a 100644 (file)
@@ -119,7 +119,7 @@ public:
       }
     }
 
-    return -1;
+    return index;
   }
 
 public slots:
@@ -178,7 +178,7 @@ private slots:
       rects << rect;
     }
 
-    int index = primaryRegion(QRectF(0, 0, width, height), rects);
+    int index = primaryRegion(QRectF(0, 0, 1, 1), rects);
 
     QList<QRectF> rest(rects);
     QRectF primary = index == -1 ? QRectF() : rest.takeAt(index);