diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-04-30 19:52:16 +0300 |
commit | 88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch) | |
tree | b35a28cd317e2895c063749180b98edfe223c032 /src/gui/font.cpp | |
parent | c24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff) | |
download | plus-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz plus-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2 plus-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz plus-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip |
Fix code style in gui.
Diffstat (limited to 'src/gui/font.cpp')
-rw-r--r-- | src/gui/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/font.cpp b/src/gui/font.cpp index acc27d4ab..b5bb46eb0 100644 --- a/src/gui/font.cpp +++ b/src/gui/font.cpp @@ -645,7 +645,7 @@ int Font::getStringIndexAt(const std::string& text, const int x) const for (size_t i = 0; i < sz; ++i) { if (getWidth(text.substr(0, i)) > x) - return i; + return static_cast<int>(i); } return static_cast<int>(sz); |