On Tuesday 15 January 2002 12:50 am, Richard E. Hawkins wrote:
> Once more, I double clicked to take a suggested spelling.
> My binary shows a Jan 2 date, so the source is two weeks old. I t
> hinkthis was after the patch, but I"m not sure.
>
> hawk
I don't use lyxstring myself and don't see a problem here. However, does the
following patch cure you're problem?
Angus
Perhaps you'd shove a few print statements into this function
(FormSpellchecker::input) to see exactly which line of code leads to the
failure. Eg
std::cerr << "line 1" << std::endl;
Index: FormSpellchecker.C
===================================================================
RCS file:
/usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormSpellchecker.C,v
retrieving revision 1.5
diff -u -p -r1.5 FormSpellchecker.C
--- FormSpellchecker.C 2002/01/14 02:28:33 1.5
+++ FormSpellchecker.C 2002/01/15 13:45:10
@@ -63,7 +63,8 @@ void FormSpellchecker::hide()
ButtonPolicy::SMInput FormSpellchecker::input(FL_OBJECT * obj, long)
{
if (obj == dialog_->replace) {
- string const tmp = fl_get_input(dialog_->input);
+ char const * const cs = fl_get_input(dialog_->input);
+ string const tmp = (cs != 0) ? cs : string();
controller().replace(tmp);
} else if (obj == dialog_->start) {
controller().check();
@@ -85,7 +86,8 @@ ButtonPolicy::SMInput FormSpellchecker::
return ButtonPolicy::SMI_NOOP;
if (clickline_ == sel) {
- string const tmp = fl_get_input(dialog_->input);
+ char const * const cs = fl_get_input(dialog_->input);
+ string const tmp = (cs != 0) ? cs : string();
controller().replace(tmp);
}