From 4cdcf37139cda7bc69248e347a20f8ac6f6817a1 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sun, 7 Nov 2010 20:58:58 +0000 Subject: [PATCH] fixed cvPreprocessIndexArray (ticket #517) --- modules/ml/src/inner_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ml/src/inner_functions.cpp b/modules/ml/src/inner_functions.cpp index 495edd4313..eaf70d4d27 100644 --- a/modules/ml/src/inner_functions.cpp +++ b/modules/ml/src/inner_functions.cpp @@ -431,8 +431,8 @@ cvPreprocessIndexArray( const CvMat* idx_arr, int data_arr_size, bool check_for_ if( idx_selected == 0 ) CV_ERROR( CV_StsOutOfRange, "No components/input_variables is selected!" ); - if( idx_selected == idx_total ) - EXIT; + //if( idx_selected == idx_total ) + // EXIT; break; case CV_32SC1: // idx_arr is array of integer indices of selected components