|
@@ -1924,6 +1924,17 @@ extension KMMainViewController: CPDFViewDelegate,CPDFListViewDelegate {
|
|
|
}
|
|
|
|
|
|
func pdfListViewAnnotationMeasureInfoChange(_ pdfListView: CPDFListView!, with annotation: CPDFAnnotation!) {
|
|
|
+ guard let data = annotation else {
|
|
|
+ if distanceMeasureInfoWindowController?.window?.isVisible == true {
|
|
|
+ distanceMeasureInfoWindowController?.clearData()
|
|
|
+ }
|
|
|
+// else if perimeterMeasureInfoWindowController?.window?.isVisible == true {
|
|
|
+// perimeterMeasureInfoWindowController?.hideFloatingWindow()
|
|
|
+// } else if areaMeasureInfoWindowController?.window?.isVisible == true {
|
|
|
+// areaMeasureInfoWindowController?.hideFloatingWindow()
|
|
|
+// }
|
|
|
+ return
|
|
|
+ }
|
|
|
if let lineAnnotation = annotation as? CPDFLineAnnotation {
|
|
|
handleLineAnnotation(lineAnnotation)
|
|
|
} else if let polylineAnnotation = annotation as? CPDFPolylineAnnotation {
|