From ff83c5bc43b2d93bb0049983323c028f9609ef99 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 1 May 2020 20:23:36 +0200 Subject: Fix crash when making window small. --- plugingui/powerwidget.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui') diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc index 3cb289a..02e7253 100644 --- a/plugingui/powerwidget.cc +++ b/plugingui/powerwidget.cc @@ -71,7 +71,7 @@ void PowerWidget::repaintEvent(GUI::RepaintEvent *repaintEvent) void PowerWidget::resize(std::size_t width, std::size_t height) { Widget::resize(width, height); - if(width < 14 || height < 14) + if(width < (14 + 59 + 64) || height < 14) { canvas.resize(1, 1); return; -- cgit v1.2.3