From 8f41c87a46fabf9b56df68691ea3ebe8af1005c2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 13 Jan 2000 16:03:38 +0000 Subject: [PATCH] Fix bug where error boxes where always placed at the beginning of document. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@420 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 4 ++++ src/texrow.C | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index c00b66e86f..8021c523f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-01-13 Jean-Marc Lasgouttes + * 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. diff --git a/src/texrow.C b/src/texrow.C index e85d661b44..5c41cd90d6 100644 --- a/src/texrow.C +++ b/src/texrow.C @@ -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; -- 2.39.2