This commit is contained in:
PrefacedCorg
2025-07-28 01:49:54 +08:00
parent a4fd301d5a
commit 7a141822e7
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ namespace Ink_Canvas {
canvas.Strokes.Remove(currentStroke);
}
} else if (item.CommitType == TimeMachineHistoryType.ElementInsert) {
if (!item.StrokeHasBeenCleared) {
if (item.StrokeHasBeenCleared) {
// Undo: 移除元素
if (item.InsertedElement != null && inkCanvas.Children.Contains(item.InsertedElement))
inkCanvas.Children.Remove(item.InsertedElement);