X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lib%2Fqtcamroi_p.h;h=b7943031ef5666561f94f3c02d8016229b941dc5;hb=bbaadb8139399ca7d6088bf8ff69fa487eae57bd;hp=6118da0516590724fc8faf8b1b3b4b915e5adb03;hpb=acb6037c2c54ce53e7cda692b23a416c192cd02c;p=harmattan%2Fcameraplus diff --git a/lib/qtcamroi_p.h b/lib/qtcamroi_p.h index 6118da0..b794303 100644 --- a/lib/qtcamroi_p.h +++ b/lib/qtcamroi_p.h @@ -3,7 +3,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -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 rest(rects); QRectF primary = index == -1 ? QRectF() : rest.takeAt(index);