Ver Fonte

ComPDFKit.Tool(win) - 修复测量注释没刷新的问题

TangJinZhou há 7 meses atrás
pai
commit
a2dabd9896
1 ficheiros alterados com 8 adições e 1 exclusões
  1. 8 1
      Demo/Examples/ComPDFKit.Tool/CPDFToolManager.cs

+ 8 - 1
Demo/Examples/ComPDFKit.Tool/CPDFToolManager.cs

@@ -806,7 +806,14 @@ namespace ComPDFKit.Tool
             annotHistory.CurrentParam = currentParam;
             annotHistory.Action = HistoryAction.Update;
             viewerTool.GetCPDFViewer().UndoManager.AddHistory(annotHistory);
-            viewerTool.GetCPDFViewer().UpdateAnnotFrame();
+            if (e.annotData.Annot.IsMeasured())
+            {
+                viewerTool.GetCPDFViewer().UpdateRenderFrame();
+            }
+            else
+            {
+                viewerTool.GetCPDFViewer().UpdateAnnotFrame();
+            }
         }
 
         private void ViewerTool_MouseLeftButtonUpHandler(object sender, MouseEventObject e)