]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.C
don't rm emergency saves ever
[lyx.git] / src / texrow.C
index dda7e517ae65624ac59f08801fe74c7b5341c9c1..96e3d2bd0e8d2dc5d86491ce0113a27e215af482 100644 (file)
@@ -8,16 +8,11 @@
 
 #include <config.h>
 
-#include <algorithm>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "texrow.h"
-#include "paragraph.h"
 #include "debug.h"
 
+#include <algorithm>
+
 using std::find_if;
 using std::for_each;
 using std::endl;
@@ -74,21 +69,21 @@ void TexRow::reset()
 {
        rowlist.clear();
        count = 0;
-       lastpar = 0;
+       lastid = -1;
        lastpos = -1;
 }
 
 
-void TexRow::start(Paragraph * par, int pos)
+void TexRow::start(int id, int pos)
 {
-       lastpar = par;
+       lastid = id;
        lastpos = pos;
 }
 
 
 void TexRow::newline()
 {
-       int const id = lastpar ? lastpar->id() : -1;
+       int const id = lastid;
        RowList::value_type tmp(id, lastpos, ++count);
        rowlist.push_back(tmp);
 }