]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.C
Various fixes to Tabular, InsetTabular and InsetText. Fixed left border for
[lyx.git] / src / texrow.C
index c223cb6b4133564a71c135c9d8565bf639f3bd07..a0cce0a298926326ce08431d9599a86bf264760a 100644 (file)
@@ -21,6 +21,7 @@
 #include "debug.h"
 
 using std::find_if;
+using std::endl;
 
 // Delete linked list
 void TexRow::reset()
@@ -81,7 +82,7 @@ bool TexRow::getIdFromRow(int row, int & id, int & pos) const
                // same id (and where the pos is larger)
                // to avoid putting errorinsets at the
                // same pos.
-               for(; kit != end; ++kit) {
+               for (; kit != end; ++kit) {
                        if (&(*kit) != &(*cit)
                            && (*kit).id() == (*cit).id()
                            && (*kit).pos() >= (*cit).pos())
@@ -107,17 +108,19 @@ void TexRow::increasePos(int id, int pos) const
 {
        RowList::iterator kit = rowlist.begin();
        RowList::iterator end = rowlist.end();
-       for(; kit != end; ++kit) {
+       for (; kit != end; ++kit) {
                if (id == (*kit).id()
                    && pos < (*kit).pos()) {
                        (*kit).pos((*kit).pos() + 1);
-                       lyxerr << "TeXRow::increasePos: ideally this "
+                       lyxerr.debug()
+                               << "TeXRow::increasePos: ideally this "
                                "should never happen..." << endl;
                }
                // When verified to work this clause should be deleted.
                if (id == (*kit).id()
                    && pos == (*kit).pos()) {
-                       lyxerr << "TexRow::increasePos: this should happen "
+                       lyxerr.debug()
+                               << "TexRow::increasePos: this should happen "
                                "maximum one time for each run of "
                                "increasePos!" << endl;
                }