Merge pull request #12475 from sturkmen72:patch-1

This commit is contained in:
Alexander Alekhin 2018-09-09 20:16:47 +00:00
commit c35c5a47df

View File

@ -366,7 +366,7 @@ void cv::imshow( const String& winname, InputArray _img )
if (useGl <= 0) if (useGl <= 0)
{ {
Mat img = _img.getMat(); Mat img = _img.getMat();
CvMat c_img = img; CvMat c_img = cvMat(img);
cvShowImage(winname.c_str(), &c_img); cvShowImage(winname.c_str(), &c_img);
} }
else else