]> git.lyx.org Git - features.git/commitdiff
Small fixes to vspace and spellchecker modules.
authorJürgen Vigna <jug@sad.it>
Mon, 11 Sep 2000 14:30:42 +0000 (14:30 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 11 Sep 2000 14:30:42 +0000 (14:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1007 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/spellchecker.C
src/vspace.C

index b03e4a2f484ef3d7492e66130eb1a207d655f4b6..0d97f0459d21c2ec0b90c8a37ae8cbd51af33f4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-09-11  Juergen Vigna  <jug@sad.it>
+
+       * src/spellchecker.C (sc_accept_word): change to add_to_session.
+
+       * src/vspace.C (nextToken): fixed error with number 0cm as unvalid.
+
 2000-09-08  Juergen Vigna  <jug@sad.it>
 
        * src/lyx_gui.C (create_forms): don't display the "default" entry as
index 022cdce54d7b74b85b4c4ca5bfde64e8a313cae1..3a36462599f9be0e5f4dd915470833dcaa56f594 100644 (file)
@@ -663,7 +663,7 @@ void sc_insert_word(char const *word)
 static inline 
 void sc_accept_word(char const *word) 
 {
-       pspell_manager_add_to_personal(sc, word);
+       pspell_manager_add_to_session(sc, word);
 }
 
 static inline 
index 5b4e41e625c2369758b49f561e399a017d0a9b02..312753288bf73ca47aaf28d23e8d74ff60a5635f 100644 (file)
@@ -98,7 +98,7 @@ char nextToken (string & data)
                        if (number_index > 3) return 'E';  // Error
                         string buffer = data.substr(0, i + 1).c_str();
                        double x = strToDbl(buffer);
-                       if (x) {
+                       if (x || (buffer[0] == '0')) {
                                number[number_index] = x;
                                lyx_advance (data, i + 1);
                                ++number_index;