From 8c328a9e3b4814fba1abed9c806e91616b02c076 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Thu, 28 Jul 2011 15:37:46 +0000 Subject: [PATCH] Java API: typo in converter is fixed --- modules/java/src/java/Converters.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/java/src/java/Converters.java b/modules/java/src/java/Converters.java index 795709996..300eec387 100644 --- a/modules/java/src/java/Converters.java +++ b/modules/java/src/java/Converters.java @@ -138,9 +138,9 @@ public class Converters { if(fs == null) throw new java.lang.IllegalArgumentException("fs == null"); int count = m.rows(); - if( CvType.CV_32FC1 != m.type() || m.rows()!=1 ) + if( CvType.CV_32FC1 != m.type() || m.cols()!=1 ) throw new java.lang.IllegalArgumentException( - "CvType.CV_32FC1 != m.type() || m.rows()!=1\n" + m); + "CvType.CV_32FC1 != m.type() || m.cols()!=1\n" + m); fs.clear(); float[] buff = new float[count];