]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.C
paint cleanups as sent to list
[lyx.git] / src / undo_funcs.C
index 96d5497491b371cf036bd55a3747402be7032184..1f4243789f5cbfdb84ef22f0002871f8f5ccbc72 100644 (file)
@@ -13,7 +13,7 @@
 #include "lyxtext.h"
 #include "BufferView.h"
 #include "buffer.h"
-#include "insets/inset.h"
+#include "insets/updatableinset.h"
 #include "debug.h"
 #include "support/LAssert.h"
 
@@ -66,7 +66,7 @@ void finishNoUndo(BufferView * bv)
        freezeUndo();
        bv->unlockInset(bv->theLockingInset());
        finishUndo();
-       bv->text->status(bv, LyXText::NEED_MORE_REFRESH);
+       bv->text->postPaint(*bv, 0);
        unFreezeUndo();
 }
 
@@ -266,7 +266,7 @@ bool textHandleUndo(BufferView * bv, Undo & undo)
                }
 
        finishUndo();
-       bv->text->status(bv, LyXText::NEED_MORE_REFRESH);
+       bv->text->postPaint(*bv, 0);
        return true;
 }