From 4e29dfdd4f95101a1ceff36f735bb0d2eef4d919 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 24 Oct 2016 14:12:12 +0200 Subject: tdf#103334 - EDITING: Undo on bullet point style I have checked the normal model and the editing model after UNDO, and all seems to be well, this is purely a rendering/lack-of-invalidation issue. The extra invalidation I add here is restricted to the UNDO case to prevent tripping up a LOK unit test (SdTiledRenderingTest::testCursorViews). I confess to not having followed the invalidation logic all the way to see why exactly it makes the bug go away. Reviewed-on: https://gerrit.libreoffice.org/30225 Reviewed-by: Noel Grandin Tested-by: Noel Grandin (cherry picked from commit ee33745ced5ae12f9ae7735fac16a7298ccae474) Change-Id: I34f7d84526462665b1ec09aba966c98cd4e8795f Reviewed-on: https://gerrit.libreoffice.org/30425 Tested-by: Jenkins Reviewed-by: Andras Timar --- include/editeng/editeng.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index e5b5e9465b66..382d3d40a080 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -599,7 +599,7 @@ public: const ViewsType& GetEditViews() const; void SetUndoMode(bool b); - void FormatAndUpdate(EditView* pCurView = nullptr); + void FormatAndUpdate(EditView* pCurView = nullptr, bool bCalledFromUndo = false); void Undo(EditView* pView); void Redo(EditView* pView); -- cgit