From: Jürgen Vigna Date: Mon, 11 Sep 2000 14:30:42 +0000 (+0000) Subject: Small fixes to vspace and spellchecker modules. X-Git-Tag: 1.6.10~22004 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a826cf25b505954920ee6ef72ab0f4b94107fb79;p=features.git Small fixes to vspace and spellchecker modules. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1007 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index b03e4a2f48..0d97f0459d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-09-11 Juergen Vigna + + * 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 * src/lyx_gui.C (create_forms): don't display the "default" entry as diff --git a/src/spellchecker.C b/src/spellchecker.C index 022cdce54d..3a36462599 100644 --- a/src/spellchecker.C +++ b/src/spellchecker.C @@ -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 diff --git a/src/vspace.C b/src/vspace.C index 5b4e41e625..312753288b 100644 --- a/src/vspace.C +++ b/src/vspace.C @@ -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;