From f2dba51be00b6c67b6d1b8924cac8019a3bcd000 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 May 2015 21:39:10 +0300 Subject: Add strong typed bool type Move. --- src/text.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/text.cpp') diff --git a/src/text.cpp b/src/text.cpp index bec055f60..8dca7d366 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -134,9 +134,10 @@ void Text::setColor(const Color *const color) } } -void Text::adviseXY(const int x, const int y, const bool move) +void Text::adviseXY(const int x, const int y, + const Move move) { - if (textManager && move) + if (textManager && move == Move_true) { textManager->moveText(this, x - mXOffset, y); } -- cgit v1.2.3-70-g09d2