X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPersonalWordList.cpp;h=665eb331b573ba45ecebbeb8dab558ec165bdf80;hb=c1e10c71850adf8e5a19160e24e32c696aaf01a6;hp=5e32e204f99fe35ba8c58160acf9c515a63c7f90;hpb=ef1561665ca2ddb8930797b44330ee97c4f6064d;p=lyx.git diff --git a/src/PersonalWordList.cpp b/src/PersonalWordList.cpp index 5e32e204f9..665eb331b5 100644 --- a/src/PersonalWordList.cpp +++ b/src/PersonalWordList.cpp @@ -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;