Martin's BranchList fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8162 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2003-11-30 18:04:48 +00:00
parent 6ba7f0c43f
commit 835002e272
2 changed files with 7 additions and 1 deletions

View File

@ -98,9 +98,12 @@ void BranchList::setSelected(string const & s, bool val)
List::iterator it = list.begin();
List::iterator end = list.end();
for (; it != end; ++it) {
if (s.find(it->getBranch(), 0) != string::npos)
if (s == it->getBranch()) {
it->setSelected(val);
return;
}
}
BOOST_ASSERT(false);
}

View File

@ -1,3 +1,6 @@
2003-11-30 Martin Vermeer <martin.vermeer@hut.fi>
* BranchList.C: fix setSelected() method.
2003-11-28 André Pönitz <poenitz@gmx.net>