From b6846bdace3bb9e8619faeea2a0921d7664c3a61 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 16 Apr 2010 18:30:52 +0000 Subject: [PATCH] Better debug ouput git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34171 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 6 ++++++ src/TexRow.cpp | 3 --- src/frontends/qt4/GuiView.cpp | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 9fb89c8241..fa98e36958 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1417,6 +1417,12 @@ void Buffer::writeLaTeXSource(odocstream & os, // Just to be sure. (Asger) d->texrow.newline(); + //for (int i = 0; itexrow.rows(); i++) { + // int id,pos; + // if (d->texrow.getIdFromRow(i+1,id,pos) && id>0) + // lyxerr << i+1 << ":" << id << ":" << getParFromID(id).paragraph().asString()<<"\n"; + //} + LYXERR(Debug::INFO, "Finished making LaTeX file."); LYXERR(Debug::INFO, "Row count was " << d->texrow.rows() - 1 << '.'); } diff --git a/src/TexRow.cpp b/src/TexRow.cpp index ac3c7c7a72..f019c25ea3 100644 --- a/src/TexRow.cpp +++ b/src/TexRow.cpp @@ -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; itexrow().getRowFromIdPos(bv->cursor().paragraph().id(), bv->cursor().pos()); + LYXERR(Debug::ACTION, "Forward search: row:" << row + << " id:" << bv->cursor().paragraph().id() << "\n"); if (!row || command.empty()) { dr.setMessage(_("Couldn't proceed.")); break;