瀏覽代碼

ComPDFKit.Tool(win) - 修复Path对象选中后无法调整大小的问题

TangJinZhou 2 月之前
父節點
當前提交
8d7b64f540
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.MultiSelectedRect.cs

+ 7 - 4
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.MultiSelectedRect.cs

@@ -236,15 +236,18 @@ namespace ComPDFKit.Tool
             MultiSelectedRect multiSelectedRect = CommonHelper.FindVisualChild<MultiSelectedRect>(PDFViewer.GetViewForTag(MultiSelectedRectViewTag));
             if (multiSelectedRect != null)
             {
+                if(editAreaList.Count != 0)
+                {
+                    cachePathList.Clear();
+                    cachePathList = new List<CPDFEditPathArea>();
+                    GetDrawPathList(Mouse.GetPosition(this));
+                }
+
                 multiSelectedRect.Children.Clear();
                 multiSelectedRect.CleanMulitSelectedRect();
                 editAreaMultiIndex.Clear();
                 //Delete Multiple Selection Record List
                 editAreaList.Clear();
-
-                cachePathList.Clear();
-                cachePathList = new List<CPDFEditPathArea>();
-                GetDrawPathList(Mouse.GetPosition(this));
             }
         }