From: Jean-Marc Lasgouttes Date: Thu, 13 Jan 2000 16:03:38 +0000 (+0000) Subject: Fix bug where error boxes where always placed at the beginning of document. X-Git-Tag: 1.6.10~22428 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f41c87a46fabf9b56df68691ea3ebe8af1005c2;p=features.git 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 --- 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;