From d056efff9d176d2876396b335c633e1936a7dcd5 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 13 Aug 2007 19:07:46 +0000 Subject: [PATCH] small fix to selection of last view source line git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19516 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TexRow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TexRow.cpp b/src/TexRow.cpp index 635be479f0..e51c4fb4ff 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -73,6 +73,8 @@ int TexRow::getRowFromIdPos(int id, int pos) const } else if (foundid) break; } + if (!foundid) + return rowlist.size(); return bestrow; }