From: Andrey Kamaev Date: Fri, 24 Feb 2012 12:45:23 +0000 (+0000) Subject: Restored missed } X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~5467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=216d75ccaeb13f4bb5abb89fac4fb9e859dd0f72;p=platform%2Fupstream%2Fopencv.git Restored missed } --- diff --git a/modules/highgui/src/cap_dc1394_v2.cpp b/modules/highgui/src/cap_dc1394_v2.cpp index a88d9ca..81b2916 100644 --- a/modules/highgui/src/cap_dc1394_v2.cpp +++ b/modules/highgui/src/cap_dc1394_v2.cpp @@ -795,9 +795,9 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value) //first: check boundaries if (value < act_feature->min) { - value = act_feature->min; - } - else if (value > act_feature->max) + value = act_feature->min; + } + else if (value > act_feature->max) { value = act_feature->max; } @@ -806,7 +806,8 @@ bool CvCaptureCAM_DC1394_v2_CPP::setProperty(int propId, double value) { act_feature->value = value; return true; - } + } + } return false; } return true;