summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-15 17:51:17 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-15 17:51:17 +0300
commitaca14d26b0d9b0eca4c4896c32996792e3eeb136 (patch)
tree0b49c85d09cd2b590a2aa6560f274ddf661af8ef /src/gui/widgets/browserbox.cpp
parentfc7afe25c154fb05e9d4c0a593457599eb53e558 (diff)
downloadmanaverse-aca14d26b0d9b0eca4c4896c32996792e3eeb136.tar.gz
manaverse-aca14d26b0d9b0eca4c4896c32996792e3eeb136.tar.bz2
manaverse-aca14d26b0d9b0eca4c4896c32996792e3eeb136.tar.xz
manaverse-aca14d26b0d9b0eca4c4896c32996792e3eeb136.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index cf11f577d..ddd21f5dd 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -441,7 +441,7 @@ void BrowserBox::draw(gcn::Graphics *graphics)
int BrowserBox::calcHeight()
{
- unsigned x = mPadding, y = mPadding;
+ unsigned int y = mPadding;
int wrappedLines = 0;
int moreHeight = 0;
int maxWidth = getWidth() - mPadding;
@@ -467,9 +467,9 @@ int BrowserBox::calcHeight()
FOR_EACH (TextRowCIter, i, mTextRows)
{
+ unsigned int x = mPadding;
const std::string row = *(i);
bool wrapped = false;
- x = mPadding;
// Check for separator lines
if (row.find("---", 0) == 0)