From ff83cfac10939ceba524c93d4e36f634f4bec805 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 May 2017 19:09:17 +0200 Subject: Make sure we don't resize to negative values. --- plugingui/textedit.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugingui/textedit.h') diff --git a/plugingui/textedit.h b/plugingui/textedit.h index 6ce59b6..17a04ff 100644 --- a/plugingui/textedit.h +++ b/plugingui/textedit.h @@ -74,9 +74,9 @@ private: 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 63, 7}; // dy1, dy2, dy3 - - static constexpr std::size_t x_border{10}; - static constexpr std::size_t y_border{8}; + + static constexpr int x_border{10}; + static constexpr int y_border{8}; ScrollBar scroll; Font font; -- cgit v1.2.3