summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index c50a263d6..a5bd98849 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -167,8 +167,8 @@ public:
Rect r;
r.left = this->pos_x;
r.top = this->pos_y;
- r.right = this->pos_x + this->current_x;
- r.bottom = this->pos_y + this->current_y;
+ r.right = this->pos_x + this->current_x - 1;
+ r.bottom = this->pos_y + this->current_y - 1;
return r;
}