]> git.lyx.org Git - features.git/commitdiff
Fix goto reference.
authorDekel Tsur <dekelts@tau.ac.il>
Wed, 17 Jan 2001 19:00:12 +0000 (19:00 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Wed, 17 Jan 2001 19:00:12 +0000 (19:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1345 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormRef.C
src/text.C

index 542768129e8a9f79738934e123051bb671922f0b..c6b8506ac2603238497d8e907c0dad4de2d97e17 100644 (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.
-
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..fe1d09707a63587defa0589190f21679f9d99690 100644 (file)
@@ -0,0 +1,4 @@
+2001-01-17  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * FormRef.C (input): Fix the behavior of goto reference button.
+
index 0f8d9ab7ef4f512b1f8139f03c0aff853296786d..c72c46f9d4024303ee1b5cd766163ddfc5b7553e 100644 (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;
index 9420e5953457cda65c384e4ac1995591959ef04c..002d7c7ed6b3e11f4cec04036aca492edc7aae36 100644 (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;
        }