From 07747033c87b32ceb306387b25e91f565c8ff7b0 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Mon, 27 Aug 2012 02:02:36 +0300 Subject: [PATCH] Check resolution.height() also instead of checking resolution.width() twice --- lib/qtcammode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1