summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-05-01 20:23:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-05-01 20:23:36 +0200
commitff83c5bc43b2d93bb0049983323c028f9609ef99 (patch)
treed287e553abeac65b12fa801c69f66bd8ff15183f /plugingui
parentee0936dade3753dc876710b87c6a30297fae60d5 (diff)
Fix crash when making window small.powermap_feature_ui
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/powerwidget.cc2
1 files changed, 1 insertions, 1 deletions
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;