浏览代码

Fixed Exception when annotating PDF Documents

frogsoftware 6 天之前
父节点
当前提交
ef93041e92

+ 2 - 1
InABox.Core/Classes/Document/EntityDocument.cs

@@ -48,7 +48,8 @@ namespace InABox.Core
         Ink,
         OKStamp,
         WarningStamp,
-        ErrorStamp
+        ErrorStamp,
+        Popup
     }
 
     [UserTracking(typeof(User))]

+ 2 - 0
inabox.wpf/DynamicGrid/PDF/PDFEditorControl.xaml.cs

@@ -182,6 +182,8 @@ namespace InABox.DynamicGrid
                 return EntityDocumentAnnotationType.Text;
             if (annotation is PdfLoadedInkAnnotation)
                 return EntityDocumentAnnotationType.Ink;
+            if (annotation is PdfLoadedPopupAnnotation)
+                return EntityDocumentAnnotationType.Popup;
             if (annotation is PdfLoadedRubberStampAnnotation)
             {
                 if (!string.IsNullOrWhiteSpace(annotation.Subject))