From 6914067ca2acfb20877818c6177f2fffecd934d6 Mon Sep 17 00:00:00 2001 From: renbin Date: Tue, 10 Dec 2024 10:21:39 +0800 Subject: [PATCH] fix: can not paste after undo The `alt` column flag return incorrect, paste empty text. Log: Fix can not paste after undo Bug: https://pms.uniontech.com/bug-view-287523.html Influence: undo-stack --- src/editor/inserttextundocommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/inserttextundocommand.cpp b/src/editor/inserttextundocommand.cpp index 18534715..c04eea0f 100644 --- a/src/editor/inserttextundocommand.cpp +++ b/src/editor/inserttextundocommand.cpp @@ -141,7 +141,7 @@ void InsertTextUndoCommand::redo() int InsertTextUndoCommand::id() const { - return m_columnEditSelections.isEmpty() ? Utils::IdColumnEditInsert : Utils::IdInsert; + return m_columnEditSelections.isEmpty() ? Utils::IdInsert : Utils::IdColumnEditInsert; } /**