Fix #7742, 66dd7c3: widget position can be negative

This commit is contained in:
glx
2019-09-17 02:52:36 +02:00
committed by Niels Martin Hansen
parent ed6a427fcc
commit 1f418555a1
2 changed files with 3 additions and 3 deletions

View File

@@ -174,8 +174,8 @@ public:
uint current_x; ///< Current horizontal size (after resizing).
uint current_y; ///< Current vertical size (after resizing).
uint pos_x; ///< Horizontal position of top-left corner of the widget in the window.
uint pos_y; ///< Vertical position of top-left corner of the widget in the window.
int pos_x; ///< Horizontal position of top-left corner of the widget in the window.
int pos_y; ///< Vertical position of top-left corner of the widget in the window.
NWidgetBase *next; ///< Pointer to next widget in container. Managed by parent container widget.
NWidgetBase *prev; ///< Pointer to previous widget in container. Managed by parent container widget.