diff options
Diffstat (limited to 'cv/video-widget.cpp')
-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) |