From a208bc13b69e2c3d1ef69eb3db66fd6de8b40025 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Wed, 16 Apr 2008 11:27:31 +0000 Subject: Fix a basic_string::at sometimes being out of range in BrowserBox::draw when checking for line separators. --- src/gui/browserbox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/browserbox.cpp') 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++) { -- cgit v1.2.3-70-g09d2