Fix crash when spellchecking; other small things

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@816 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-06-15 15:54:05 +00:00
parent 2661398a89
commit 30eff7526d
8 changed files with 23 additions and 64 deletions

View File

@ -1,3 +1,16 @@
2000-06-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/text.C (SelectNextWord): protect against null pointers with
old-style string streams. (fix from Paul Theo Gonciari
<gptheo@yahoo.com>)
* src/cite.[Ch]: remove erroneous files.
* lib/configure.m4: update the list of created directories.
* src/lyxrow.C: include <config.h>
* src/lyxcursor.C: ditto.
2000-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lib/examples/decimal.lyx: new example file from Mike.

3
lib/configure vendored
View File

@ -70,7 +70,8 @@ fi
#### Create the build directories if necessary
for dir in bind doc kbd layouts templates reLyX ; do
for dir in bind clipart doc examples images kbd layouts reLyX \
scripts templates ; do
test ! -d $dir && mkdir $dir
done

View File

@ -146,7 +146,8 @@ fi
#### Create the build directories if necessary
for dir in bind doc kbd layouts templates reLyX ; do
for dir in bind clipart doc examples images kbd layouts reLyX \
scripts templates ; do
test ! -d $dir && mkdir $dir
done

View File

@ -1,42 +0,0 @@
// File modified by fdfix.sh for use by lyx (with xforms 0.81) and gettext
#include <config.h>
#include "lyx_gui_misc.h"
#include "gettext.h"
/* Form definition file generated with fdesign. */
#include FORMS_H_LOCATION
#include <cstdlib>
#include "cite.h"
FD_citation_form *create_form_citation_form(void)
{
FL_OBJECT *obj;
FD_citation_form *fdui = (FD_citation_form *) fl_calloc(1, sizeof(FD_citation_form));
fdui->citation_form = fl_bgn_form(FL_NO_BOX, 440, 790);
obj = fl_add_box(FL_UP_BOX, 0, 0, 440, 790, "");
obj = fl_add_browser(FL_HOLD_BROWSER, 20, 40, 170, 370, _("Inset keys"));
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
obj = fl_add_browser(FL_HOLD_BROWSER, 250, 40, 170, 370, _("Bibliography keys"));
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
obj = fl_add_button(FL_NORMAL_BUTTON, 200, 40, 40, 40, _("@4->"));
obj = fl_add_button(FL_NORMAL_BUTTON, 200, 90, 40, 40, _("@9+"));
obj = fl_add_button(FL_NORMAL_BUTTON, 200, 140, 40, 40, _("@8->"));
obj = fl_add_button(FL_NORMAL_BUTTON, 200, 190, 40, 40, _("@2->"));
obj = fl_add_browser(FL_NORMAL_BROWSER, 20, 440, 400, 110, _("Info"));
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
obj = fl_add_choice(FL_NORMAL_CHOICE, 160, 570, 130, 30, _("Citation style"));
fl_set_object_boxtype(obj, FL_DOWN_BOX);
obj = fl_add_input(FL_NORMAL_INPUT, 100, 620, 250, 30, _("Text before"));
obj = fl_add_input(FL_NORMAL_INPUT, 100, 660, 250, 30, _("Text after"));
obj = fl_add_button(FL_RETURN_BUTTON, 190, 730, 110, 40, _("OK"));
obj = fl_add_button(FL_NORMAL_BUTTON, 310, 730, 110, 40, _("Cancel"));
fl_end_form();
//fdui->citation_form->fdui = fdui;
return fdui;
}
/*---------------------------------------*/

View File

@ -1,19 +0,0 @@
/** Header file generated with fdesign on Mon Jun 12 06:32:31 2000.**/
#ifndef FD_citation_form_h_
#define FD_citation_form_h_
/** Callbacks, globals and object handlers **/
/**** Forms and Objects ****/
typedef struct {
FL_FORM *citation_form;
void *vdata;
char *cdata;
long ldata;
} FD_citation_form;
extern FD_citation_form * create_form_citation_form(void);
#endif /* FD_citation_form_h_ */

View File

@ -8,6 +8,8 @@
*
* ====================================================== */
#include <config.h>
#include "lyxcursor.h"

View File

@ -8,6 +8,8 @@
*
* ====================================================== */
#include <config.h>
#include "lyxrow.h"

View File

@ -3222,7 +3222,8 @@ char * LyXText::SelectNextWord(BufferView * bview, float & value)
#ifdef HAVE_SSTREAM
&& latex.str() == "\\-"
#else
&& string(latex.str(), 3) == "\\-" // this is not nice at all
&& latex.str() // protect against null pointers
&& string(latex.str(), 3) == "\\-" // this is not nice at all
#endif
))
cursor.pos(cursor.pos() + 1);