]> git.lyx.org Git - lyx.git/blobdiff - src/PersonalWordList.cpp
Fix text direction issue for InsetInfo in RTL context
[lyx.git] / src / PersonalWordList.cpp
index 5e32e204f99fe35ba8c58160acf9c515a63c7f90..665eb331b573ba45ecebbeb8dab558ec165bdf80 100644 (file)
@@ -61,7 +61,7 @@ void PersonalWordList::load()
        if (line == header()) {
                while (ifs) {
                        getline(ifs, line);
-                       if (!line.empty()) {
+                       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;