From f0cc8d3085febafe9467a96d055db103e3c40c8e Mon Sep 17 00:00:00 2001 From: Ilya Lysenkov Date: Wed, 15 Jun 2011 13:26:40 +0000 Subject: [PATCH] QT: fixed exceptions (ticket #901) --- modules/highgui/src/window_QT.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.7.4