|
@@ -343,9 +343,10 @@ namespace ComPDFKit.Tool
|
|
if (oldToolType == ToolType.ContentEdit)
|
|
if (oldToolType == ToolType.ContentEdit)
|
|
{
|
|
{
|
|
viewerTool.GetCPDFViewer().GetDocument().ReleasePages();
|
|
viewerTool.GetCPDFViewer().GetDocument().ReleasePages();
|
|
-
|
|
|
|
- viewerTool.GetCPDFViewer().UndoManager.RemoveRedoHistoryForType(typeof(PDFEditHistory));
|
|
|
|
- viewerTool.GetCPDFViewer().UndoManager.RemoveUndoHistoryForType(typeof(PDFEditHistory));
|
|
|
|
|
|
+ //Undo delete logic
|
|
|
|
+ viewerTool.GetCPDFViewer().UndoManager.ClearHistory();
|
|
|
|
+ // viewerTool.GetCPDFViewer().UndoManager.RemoveRedoHistoryForType(typeof(PDFEditHistory));
|
|
|
|
+ //viewerTool.GetCPDFViewer().UndoManager.RemoveUndoHistoryForType(typeof(PDFEditHistory));
|
|
viewerTool.GetCPDFViewer().UpdateVirtualNodes();
|
|
viewerTool.GetCPDFViewer().UpdateVirtualNodes();
|
|
viewerTool.GetCPDFViewer().UpdateRenderFrame();
|
|
viewerTool.GetCPDFViewer().UpdateRenderFrame();
|
|
}
|
|
}
|