From a62b293127a587985c608dcf2dbf3354c2d9b19b Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Wed, 17 Jan 2001 19:00:13 +0000 Subject: [PATCH] Fix goto reference. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1347 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/FormRef.C | 2 +- src/text.C | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontends/xforms/FormRef.C b/src/frontends/xforms/FormRef.C index 0f8d9ab7ef..c72c46f9d4 100644 --- a/src/frontends/xforms/FormRef.C +++ b/src/frontends/xforms/FormRef.C @@ -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; diff --git a/src/text.C b/src/text.C index 9420e59534..002d7c7ed6 100644 --- a/src/text.C +++ b/src/text.C @@ -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; }