From 92c1851c8ce611f2a6a540bb15277deefb2bcfb0 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Thu, 17 Oct 2019 23:49:50 +0200 Subject: [PATCH] bugfix: OpenCV-interface used hidden function --- lib/jkqtplotter/jkqtpopencvinterface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jkqtplotter/jkqtpopencvinterface.h b/lib/jkqtplotter/jkqtpopencvinterface.h index bbeec68e53..de802a6ca3 100644 --- a/lib/jkqtplotter/jkqtpopencvinterface.h +++ b/lib/jkqtplotter/jkqtpopencvinterface.h @@ -77,8 +77,7 @@ inline size_t JKQTPCopyCvMatToColumn(JKQTPDatastore* datastore, const cv::Mat& m else if (CV_MAT_DEPTH(mat.type())==CV_8U) JKQTPDatastore_Helper::copyDataFromMat(d, mat, channel); else throw std::runtime_error("datatype of cv::Mat not supported by JKQTPDatastore::copyImageToColumn()"); - size_t itemid=datastore->addInternalItem(d, N); - return datastore->addColumnForItem(itemid, 0, name); + return datastore->addInternalColumn(d, N, name); }