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

Fixed Exception when annotating PDF Documents

frogsoftware преди 1 седмица
родител
ревизия
ef93041e92
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 2 1
      InABox.Core/Classes/Document/EntityDocument.cs
  2. 2 0
      inabox.wpf/DynamicGrid/PDF/PDFEditorControl.xaml.cs

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

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

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

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