diff options
Diffstat (limited to 'plugingui/powerwidget.cc')
-rw-r--r-- | plugingui/powerwidget.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc index 9be0c48..71ad74b 100644 --- a/plugingui/powerwidget.cc +++ b/plugingui/powerwidget.cc @@ -31,7 +31,6 @@ #include <notifier.h> #include <settings.h> -#include <powermap.h> #include <hugin.hpp> #include <cmath> @@ -120,7 +119,7 @@ PowerWidget::Canvas::Canvas(dggui::Widget* parent, void PowerWidget::Canvas::repaintEvent(dggui::RepaintEvent *repaintEvent) { - if(width() < 1 || height() < 1) + if(width() < 4 || height() < 4) { return; } |