]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
citation patch from Angus
[lyx.git] / src / LColor.C
index 16777903939838bb5e09316d786a41ab17345c80..8ba1e503d757a136bda1e8faec9bb3d817144019 100644 (file)
@@ -191,7 +191,8 @@ bool LColor::setColor(string const & lyxname, string const & x11name)
 LColor::color LColor::getFromGUIName(string const & guiname) const
 {
        InfoTab::const_iterator ici = infotab.begin();
-       for (; ici != infotab.end(); ++ici) {
+       InfoTab::const_iterator end = infotab.end();
+       for (; ici != end; ++ici) {
                if (!compare_no_case((*ici).second.guiname, guiname))
                        return (*ici).first;
        }
@@ -203,7 +204,8 @@ LColor::color LColor::getFromLyXName(string const & lyxname) const
 {
        
        InfoTab::const_iterator ici = infotab.begin();
-       for (; ici != infotab.end(); ++ici) {
+       InfoTab::const_iterator end = infotab.end();
+       for (; ici != end; ++ici) {
                if (!compare_no_case((*ici).second.lyxname, lyxname))
                        return (*ici).first;
        }