Fix goto reference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1345 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-01-17 19:00:12 +00:00
parent 53b30ba060
commit ce61844b9c
4 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,9 @@
2001-01-17 Dekel Tsur <dekelts@tau.ac.il>
* WorkArea.C (work_area_handler): Decrease keyboard purge thershold.
* text.C (IsBoundary): Remove the error message
* WorkArea.C (work_area_handler): Decrease keyboard purge threshold.
* lyxrc.C (setDefaults): Correct initialization value for
font_norm_type.
@ -32,4 +34,3 @@
alignment commands (when needed).
* text.C (InsertChar): Add ':' to number separator chars.

View File

@ -0,0 +1,4 @@
2001-01-17 Dekel Tsur <dekelts@tau.ac.il>
* FormRef.C (input): Fix the behavior of goto reference button.

View File

@ -199,7 +199,7 @@ bool FormRef::input(FL_OBJECT *, long data)
{
lv_->getLyXFunc()->
Dispatch(LFUN_REF_GOTO,
params.getContents());
fl_get_input(dialog_->ref));
fl_set_object_label(dialog_->button_go, _("Go back"));
}
break;

View File

@ -348,7 +348,8 @@ bool LyXText::IsBoundary(Buffer const * buf, LyXParagraph * par,
return false;
if (!bidi_InRange(pos - 1)) {
lyxerr << "LyXText::IsBoundary This shouldn't happen." << endl;
/// This can happen if pos is the first char of a row.
/// Returning false in this case is incorrect!
return false;
}