From 3bd7aa79b8f98a1f3185499d2bbaa746e822ba15 Mon Sep 17 00:00:00 2001 From: Jeremy Borgman Date: Tue, 8 Sep 2020 20:12:08 -0500 Subject: [PATCH] Fix count when the redo tool is called with circle counter --- src/widgets/capture/capturewidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/capture/capturewidget.cpp b/src/widgets/capture/capturewidget.cpp index c9c02749..6a21e84a 100644 --- a/src/widgets/capture/capturewidget.cpp +++ b/src/widgets/capture/capturewidget.cpp @@ -731,6 +731,9 @@ CaptureWidget::handleButtonSignal(CaptureTool::Request r) m_undoStack.undo(); break; case CaptureTool::REQ_REDO_MODIFICATION: + if (m_undoStack.redoText() == "Circle Counter") { + this->incrementCircleCount(); + } m_undoStack.redo(); break; case CaptureTool::REQ_REDRAW: