]> git.lyx.org Git - features.git/commitdiff
Fix bug where error boxes where always placed at the beginning of document.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Jan 2000 16:03:38 +0000 (16:03 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 13 Jan 2000 16:03:38 +0000 (16:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@420 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/texrow.C

index c00b66e86f2342a4f78ca339b2fbc2837c5f20da..8021c523f586dfdfc21e618cbb836c1410ba3ef0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-01-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
+       * src/texrow.C (getIdFromRow): actually return something useful in
+       id and pos. Hopefully fixes the bug with positionning of errorbox
+       insets. 
+
        * src/lyx_main.C (easyParse): output an error and exit if an
        incorrect command line option has been given.
 
index e85d661b444de8c5e68182e9ed09772ebd6ddaa5..5c41cd90d6179dab743150479ab5bad21410f887 100644 (file)
@@ -69,6 +69,8 @@ void TexRow::getIdFromRow(int row, int & id, int & pos)
                            && (*kit).pos >= (*cit).pos)
                                (*kit).pos++;
                }
+               id = (*cit).id;
+               pos = (*cit).pos;
        } else {
                id = -1;
                pos = 0;