From c640f53d5daf4f12680e19c53094cd7c7a17b7e0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 28 Jun 2015 08:33:02 +0200 Subject: Fix warning. --- plugingui/widget.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/plugingui/widget.cc b/plugingui/widget.cc index 4b92e65..5c8ff46 100644 --- a/plugingui/widget.cc +++ b/plugingui/widget.cc @@ -136,6 +136,7 @@ size_t Widget::height() size_t Widget::windowX() { size_t window_x = x(); + if(parent) { window_x += parent->windowX(); -- cgit v1.2.3