diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 21:43:02 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-21 21:43:02 +0100 |
commit | 6b1314c99897140b274fbcc7b5cbdf772d24f2e2 (patch) | |
tree | 20ebe6dd37fe70a3d709faf27a8dce4cc149ef0c | |
parent | fb7293c6386f73d60384fd7dadd9a0817e9148bf (diff) |
cv/video-widget: make check for widget size more strict
It still causes assertion failures for @mrsanchos.
-rw-r--r-- | cv/video-widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |