Browse Source

【注释】修复“选中Stamp属性面板预览图片空白”

wanjun 1 year ago
parent
commit
a6a5e85e7a

+ 3 - 3
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/StampList/KMAnnotationStampViewController.swift

@@ -411,7 +411,7 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
                 
                 for tAnnotation in blockSelf.annotations {
                     if tAnnotation is CPDFListStampAnnotation {
-                        blockSelf.pdfView?.rotateStampAnnotation(tAnnotation as! CPDFListStampAnnotation, rotateAngle: -90)
+                        blockSelf.pdfView?.rotateStampAnnotation((tAnnotation as! CPDFListStampAnnotation), rotateAngle: -90)
                     }
                 }
             } else {
@@ -436,7 +436,7 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
                 for tAnnotation in blockSelf.annotations {
                     if tAnnotation is CPDFListStampAnnotation {
                         if tAnnotation is CPDFListStampAnnotation {
-                            blockSelf.pdfView?.rotateStampAnnotation(tAnnotation as! CPDFListStampAnnotation, rotateAngle: 90)
+                            blockSelf.pdfView?.rotateStampAnnotation((tAnnotation as! CPDFListStampAnnotation), rotateAngle: 90)
                         }
                     }
                 }
@@ -458,7 +458,7 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
         contentTextView.delegate = self
         contentTextView.isEditable = false
         
-//        sampleImageView.image = self.annotationModel?.annotationImage
+        sampleImageView.image = (annotationModel?.annotation as! CPDFListStampAnnotation as CPDFListStampAnnotation).stampImage()
         
         if annotationModel?.annotations != nil {
             if annotation is CPDFListStampAnnotation {