mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Attempt on #6655.
getRowFromIdPos returns row shifted by 1 (we count internally from 0). The function still doesn't work properly looking at the the comments of the original writer (last *nonempty* row), but its hopefully better now. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34172 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b6846bdace
commit
70d9833e39
@ -84,7 +84,7 @@ int TexRow::getRowFromIdPos(int id, int pos) const
|
||||
}
|
||||
if (!foundid)
|
||||
return rowlist.size();
|
||||
return distance(rowlist.begin(), bestrow);
|
||||
return distance(rowlist.begin(), bestrow) + 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user