From f591bf522d2c63ad7f9fc87388671afbc16fbcd0 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 29 Apr 2019 19:25:42 +0200 Subject: [PATCH] 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 --- svl/source/undo/undo.cxx | 1 + 1 file changed, 1 insertion(+) 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; }