Browse Source

ComPDFKit.Demo(win) - 修复高亮注释Undo无效问题

TangJinZhou 1 week ago
parent
commit
060c2ae74f

+ 1 - 1
Demo/Examples/Compdfkit.Controls/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFMarkupUI.xaml.cs

@@ -39,7 +39,7 @@ namespace ComPDFKit.Controls.PDFControlUI
                 switch (markupAnnot.Type)
                 switch (markupAnnot.Type)
                 {
                 {
                     case C_ANNOTATION_TYPE.C_ANNOTATION_HIGHLIGHT:
                     case C_ANNOTATION_TYPE.C_ANNOTATION_HIGHLIGHT:
-                        return new LineAnnotHistory();
+                        return new HighlightAnnotHistory();
                     case C_ANNOTATION_TYPE.C_ANNOTATION_UNDERLINE:
                     case C_ANNOTATION_TYPE.C_ANNOTATION_UNDERLINE:
                         return new UnderlineAnnotHistory();
                         return new UnderlineAnnotHistory();
                     case C_ANNOTATION_TYPE.C_ANNOTATION_STRIKEOUT:
                     case C_ANNOTATION_TYPE.C_ANNOTATION_STRIKEOUT: