From: Ilya Lysenkov Date: Wed, 15 Jun 2011 13:26:40 +0000 (+0000) Subject: QT: fixed exceptions (ticket #901) X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~6981 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0cc8d3085febafe9467a96d055db103e3c40c8e;p=platform%2Fupstream%2Fopencv.git QT: fixed exceptions (ticket #901) --- diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index 78bc77b..6dab2b5 100755 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -2773,11 +2773,11 @@ void ViewPort::drawStatusBar() if (nbChannelOriginImage!=CV_8UC1 && nbChannelOriginImage!=CV_8UC3) return; - //if (mouseCoordinate.x()>=0 && - // mouseCoordinate.y()>=0 && - // mouseCoordinate.x()=0 && mouseCoordinate.y()>=0) + if (mouseCoordinate.x()>=0 && + mouseCoordinate.y()>=0 && + mouseCoordinate.x()=0 && mouseCoordinate.y()>=0) { QRgb rgbValue = image2Draw_qt.pixel(mouseCoordinate);