From 70d9833e39f1b215ef6983763abde4f0788743e1 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 16 Apr 2010 18:52:40 +0000 Subject: [PATCH] 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 --- src/TexRow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TexRow.cpp b/src/TexRow.cpp index f019c25ea3..a18d84f543 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -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; } -- 2.39.5