]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.C
don't rm emergency saves ever
[lyx.git] / src / texrow.C
index 80adc8463ee7c8b15332b48d73965b10b4a34bf8..96e3d2bd0e8d2dc5d86491ce0113a27e215af482 100644 (file)
@@ -8,12 +8,11 @@
 
 #include <config.h>
 
-#include <algorithm>
-
 #include "texrow.h"
-#include "paragraph.h"
 #include "debug.h"
 
+#include <algorithm>
+
 using std::find_if;
 using std::for_each;
 using std::endl;
@@ -70,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);
 }