From: Mohammed Sameer Date: Sun, 26 Aug 2012 23:02:36 +0000 (+0300) Subject: Check resolution.height() also instead of checking resolution.width() twice X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=commitdiff_plain;h=07747033c87b32ceb306387b25e91f565c8ff7b0 Check resolution.height() also instead of checking resolution.width() twice --- diff --git a/lib/qtcammode.cpp b/lib/qtcammode.cpp index e21a6b1..4dc2b11 100644 --- a/lib/qtcammode.cpp +++ b/lib/qtcammode.cpp @@ -164,7 +164,7 @@ void QtCamMode::setCaps(const char *property, const QSize& resolution, return; } - if (resolution.width() <= 0 || resolution.width() <= 0) { + if (resolution.width() <= 0 || resolution.height() <= 0) { return; }