diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-19 19:09:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-19 19:09:17 +0200 |
commit | ff83cfac10939ceba524c93d4e36f634f4bec805 (patch) | |
tree | d481913f2136bf04d2d1deb650e6bd084a531676 /plugingui/textedit.h | |
parent | a3dc9bd19f976cbc84ba3d1a16c72257b42b28ba (diff) |
Make sure we don't resize to negative values.
Diffstat (limited to 'plugingui/textedit.h')
-rw-r--r-- | plugingui/textedit.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |