]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.C
Move #includes out of header files.
[lyx.git] / src / BranchList.C
index 050b1b046c871690a2c459af6d6c9302d8c4cf21..2198a7cc70ab6347c177f2a0f4a97c34516e12cb 100644 (file)
@@ -2,11 +2,14 @@
  * \file BranchList.C 
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
+ *
  * \author Martin Vermeer
  * 
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
+#include <config.h>
+
 #include "BranchList.h"
 #include "support/LAssert.h"
 
@@ -80,7 +83,7 @@ void BranchList::setColor(string const & s, string const & 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->setColor(val);
                        return;
                }