Ver Fonte

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

TangJinZhou há 2 meses atrás
pai
commit
8d7b64f540

+ 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));
             }
         }