]> git.lyx.org Git - lyx.git/commitdiff
Martin's BranchList fix
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 30 Nov 2003 18:04:48 +0000 (18:04 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 30 Nov 2003 18:04:48 +0000 (18:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8162 a592a061-630c-0410-9148-cb99ea01b6c8

src/BranchList.C
src/ChangeLog

index e6b22ce53611a865e808a573a440ab38be85acea..dd9f8871a9ac9468c2c19f6448386caac61c6ed2 100644 (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);
 }
 
 
index 5729bcd7c6299b1a57801d656cda45f534d5073b..2ef05297ab21867271fa3f6f8bab2a67441f780c 100644 (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>