]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
fix "make dist" target
[lyx.git] / src / undo.C
index b177deb8d444a9c9a5b9aab94b9c673d3ae9080a..bc51dff11ea8a9ce4b71cc6972937a55b9f14e38 100644 (file)
 
 #include <config.h>
 
-#include "undo.h"
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
+#include "undo.h"
+
 
 Undo::Undo(undo_kind kind_arg,
           int number_before_arg, int number_behind_arg,
@@ -36,7 +36,7 @@ Undo::~Undo()
        LyXParagraph * tmppar;
        while (par) {
                tmppar = par;
-               par = par->next;
+               par = par->next();
                delete tmppar;
        }
 }