From 13d201581a10be0ca2a0523248a7348c712e0ad9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 17 Jan 2018 02:12:51 +0100 Subject: fix build (2) --- cv/video-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cv') diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp index f125bf76..146ddc3f 100644 --- a/cv/video-widget.cpp +++ b/cv/video-widget.cpp @@ -71,7 +71,7 @@ void cv_video_widget::update_image(const QImage& img) if (freshp) return; - const unsigned nbytes = img.sizeInBytes(); + const unsigned nbytes = img.bytesPerLine() * img.height(); vec.resize(nbytes); -- cgit v1.2.3