Merge branch 'feat/TimeMachine' of https://github.com/WXRIW/Ink-Canvas into feat/TimeMachine

This commit is contained in:
Raspberry-Monster 2023-04-16 15:27:28 +08:00
commit a74ac6eb7a
No known key found for this signature in database
GPG Key ID: 9A0D725BB122D507

View File

@ -6098,6 +6098,7 @@ namespace Ink_Canvas
if (sender != lastBorderMouseDownObject) return; if (sender != lastBorderMouseDownObject) return;
if (inkCanvas.GetSelectedStrokes().Count > 0) if (inkCanvas.GetSelectedStrokes().Count > 0)
{ {
timeMachine.CommitStrokeEraseHistory(inkCanvas.Strokes);
inkCanvas.Strokes.Remove(inkCanvas.GetSelectedStrokes()); inkCanvas.Strokes.Remove(inkCanvas.GetSelectedStrokes());
GridInkCanvasSelectionCover.Visibility = Visibility.Collapsed; GridInkCanvasSelectionCover.Visibility = Visibility.Collapsed;
} }