]> git.lyx.org Git - lyx.git/blobdiff - src/TexRow.cpp
partial fix for bug 6986: Use the right tex2lyx (at least if tex2lyx is installed)
[lyx.git] / src / TexRow.cpp
index ac3c7c7a723e412b64898da388f93f0618c41215..a18d84f5438925847e1a65129d5f14f7236aeb97 100644 (file)
@@ -68,9 +68,6 @@ bool TexRow::getIdFromRow(int row, int & id, int & pos) const
 int TexRow::getRowFromIdPos(int id, int pos) const
 {
        bool foundid = false;
-       //lyxerr<<"Table:";
-       //for (unsigned int i=0; i<rowlist.size(); i++)
-       //lyxerr<<i<<" (id,pos):\t"<<rowlist[i].id()<<" "<<rowlist[i].pos()<<"\n";
 
        // this loop finds the last *nonempty* row with the same id
        // and position <= pos
@@ -87,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;
 }