From 6b1314c99897140b274fbcc7b5cbdf772d24f2e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Feb 2017 21:43:02 +0100 Subject: cv/video-widget: make check for widget size more strict It still causes assertion failures for @mrsanchos. --- cv/video-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp index 3158fa8a..acaf06a6 100644 --- a/cv/video-widget.cpp +++ b/cv/video-widget.cpp @@ -24,7 +24,7 @@ void cv_video_widget::update_image(const cv::Mat& frame) { const int w = preview_size.width(), h = preview_size.height(); - if (!w || !h) + if (w < 1 || h < 1) return; if (_frame.cols != frame.cols || _frame.rows != frame.rows) -- cgit v1.2.3