Check resolution.height() also instead of checking resolution.width() twice
[harmattan/cameraplus] / lib / qtcammode.cpp
index e21a6b1..4dc2b11 100644 (file)
@@ -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;
   }