svl/source/undo/undo.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit f591bf522d2c63ad7f9fc87388671afbc16fbcd0
Author: Mike Kaganski <[email protected]>
AuthorDate: Mon Apr 29 19:25:42 2019 +0200
Commit: Mike Kaganski <[email protected]>
CommitDate: Mon Apr 29 20:56:09 2019 +0200
tdf#125030: Prevent double-clearing the guard
... discovered after after commit d38f9934f08939032cca64a32de58fa3901a88d5.
Change-Id: I09bcee0053d1a5132483c933a903f006a236a679
Reviewed-on: https://gerrit.libreoffice.org/71550
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <[email protected]>
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 7802985e6e1e..5cccb085d65f 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -871,6 +871,7 @@ bool SfxUndoManager::Repeat( SfxRepeatTarget &rTarget )
aGuard.clear();
if ( pAction->CanRepeat( rTarget ) )
pAction->Repeat( rTarget );
+ aGuard.reset(); // allow clearing in guard dtor
return true;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits