summaryrefslogtreecommitdiff
path: root/src/gui/font.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
commit88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch)
treeb35a28cd317e2895c063749180b98edfe223c032 /src/gui/font.cpp
parentc24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff)
downloadmanaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip
Fix code style in gui.
Diffstat (limited to 'src/gui/font.cpp')
-rw-r--r--src/gui/font.cpp2
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);