diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-07 22:51:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-07 22:51:42 +0300 |
commit | 17eb4c92bdaf20f66ef576028c67c80fcea93913 (patch) | |
tree | 4936eef82e62e6cd3107b2c99a9821b48902a59f /src/gui/widgets/browserbox.cpp | |
parent | 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (diff) | |
download | manaverse-17eb4c92bdaf20f66ef576028c67c80fcea93913.tar.gz manaverse-17eb4c92bdaf20f66ef576028c67c80fcea93913.tar.bz2 manaverse-17eb4c92bdaf20f66ef576028c67c80fcea93913.tar.xz manaverse-17eb4c92bdaf20f66ef576028c67c80fcea93913.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index eec2547ee..52ba88a7b 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -390,7 +390,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) // Wraping between words (at blank spaces) if (nextChar < sz && tempRow.at(nextChar) == ' ') { - unsigned int nextSpacePos = CAST_U32( + int nextSpacePos = CAST_U32( tempRow.find(" ", (nextChar + 1))); if (nextSpacePos <= 0) nextSpacePos = CAST_U32(sz) - 1U; @@ -398,7 +398,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) const unsigned int nextWordWidth = CAST_U32(font->getWidth( tempRow.substr(nextChar, - (nextSpacePos - nextChar)))); + (CAST_U32(nextSpacePos) - nextChar)))); if ((x + nextWordWidth + 10) > CAST_U32(getWidth())) |