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
This commit is contained in:
Jean-Marc Lasgouttes 2000-01-13 16:03:38 +00:00
parent 24c3237e6a
commit 8f41c87a46
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View 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;