Bug #1890 Opencv 2.4.0 with QT 4.7.4 and cvcreatebutton exception fixed.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Mon, 16 Sep 2013 09:42:15 +0000 (13:42 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Mon, 16 Sep 2013 09:42:15 +0000 (13:42 +0400)
QVector range check exception fixed.

modules/highgui/src/window_QT.cpp

index eb9cfe3..84af394 100644 (file)
@@ -1736,7 +1736,8 @@ void CvWindow::displayStatusBar(QString text, int delayms)
 
 void CvWindow::enablePropertiesButton()
 {
-    vect_QActions[9]->setDisabled(false);
+    if (!vect_QActions.empty())
+        vect_QActions[9]->setDisabled(false);
 }