Browse Source

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

TangJinZhou 2 months ago
parent
commit
8d7b64f540
1 changed files with 7 additions and 4 deletions
  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));
             }
         }