summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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)