]> git.lyx.org Git - lyx.git/blobdiff - src/PersonalWordList.cpp
Account for old versions of Pygments
[lyx.git] / src / PersonalWordList.cpp
index a0a8726eb61f5fe26d18d60e8cc4770bc59684a9..665eb331b573ba45ecebbeb8dab558ec165bdf80 100644 (file)
@@ -61,7 +61,7 @@ void PersonalWordList::load()
        if (line == header()) {
                while (ifs) {
                        getline(ifs, line);
-                       if (!line.empty() && !line[0] == '#') {
+                       if (!line.empty() && !(line[0] == '#')) {
                                docstring const word = from_utf8(line);
                                insert(word);
                        }
@@ -92,6 +92,7 @@ void PersonalWordList::save()
        LYXERR(Debug::FILES, "count of saved items: " << words_.size());
 }
 
+
 bool PersonalWordList::equalwords(docstring const & w1, docstring const & w2) const
 {
        return w1 == w2;