summaryrefslogtreecommitdiff
path: root/src/gui/browserbox.cpp
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-16 11:27:31 +0000
committerDennis Friis <peavey@placid.dk>2008-04-16 11:27:31 +0000
commita208bc13b69e2c3d1ef69eb3db66fd6de8b40025 (patch)
tree24c86919167c6aba038e22cc4fd3cd794505665a /src/gui/browserbox.cpp
parentfe02ca9dcaa593d361f0acebcfb514997dc4ca9e (diff)
downloadmana-client-a208bc13b69e2c3d1ef69eb3db66fd6de8b40025.tar.gz
mana-client-a208bc13b69e2c3d1ef69eb3db66fd6de8b40025.tar.bz2
mana-client-a208bc13b69e2c3d1ef69eb3db66fd6de8b40025.tar.xz
mana-client-a208bc13b69e2c3d1ef69eb3db66fd6de8b40025.zip
Fix a basic_string::at sometimes being out of range in BrowserBox::draw when checking for line separators.
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r--src/gui/browserbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp
index 185777d0..a2613389 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -380,8 +380,7 @@ BrowserBox::draw(gcn::Graphics *graphics)
}
// Check for line separators in format "---"
- if ((j <= 3) && (row.at(j) == '-') && (row.at(j + 1) == '-') &&
- (row.at(j + 2) == '-'))
+ if (row == "---")
{
for (x = 0; x < getWidth(); x++)
{