Commit 172c00fa authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #4167 from berak:patch-2

parents c81b0647 b29e473c
......@@ -313,7 +313,7 @@ public:
CV_Error( CV_StsBadArg,
"The input samples must be 32f matrix with the number of columns = nallvars" );
if( samples.rows > 1 && _results.needed() )
if( (samples.rows > 1) && (! _results.needed()) )
CV_Error( CV_StsNullPtr,
"When the number of input samples is >1, the output vector of results must be passed" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment