]> git.lyx.org Git - features.git/commitdiff
prepare for LyX personal dictionary file format with comment markers
authorStephan Witt <switt@lyx.org>
Thu, 3 Feb 2011 21:47:15 +0000 (21:47 +0000)
committerStephan Witt <switt@lyx.org>
Thu, 3 Feb 2011 21:47:15 +0000 (21:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37469 a592a061-630c-0410-9148-cb99ea01b6c8

src/PersonalWordList.cpp

index 5e32e204f99fe35ba8c58160acf9c515a63c7f90..a0a8726eb61f5fe26d18d60e8cc4770bc59684a9 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);
                        }