Преглед на файлове

【fix】【测量】退出测量功能,注释列表双击选中测量线段,属性面板参数未联动

tangchao преди 6 месеца
родител
ревизия
048dd98396
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

+ 7 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -1007,6 +1007,13 @@ extension KMLeftSideViewController {
                     
                     self.listView?.updateActiveAnnotations([annotation])
                     self.listView?.setNeedsDisplayAnnotationViewForVisiblePages()
+                if annotation is CPDFPolygonAnnotation || annotation is CPDFPolylineAnnotation {
+                    self.listView?.pdfListViewDelegate.pdfListViewAnnotationMeasureInfoChange?(self.listView, with: annotation)
+                } else if let anno = annotation as? CPDFLineAnnotation {
+                    if anno.isMeasure {
+                        self.listView?.pdfListViewDelegate.pdfListViewAnnotationMeasureInfoChange?(self.listView, with: annotation)
+                    }
+                }
 //                }
                 
             }