projects
/
harmattan
/
cameraplus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check resolution.height() also instead of checking resolution.width() twice
[harmattan/cameraplus]
/
lib
/
qtcammode.cpp
diff --git
a/lib/qtcammode.cpp
b/lib/qtcammode.cpp
index
e21a6b1
..
4dc2b11
100644
(file)
--- 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;
}