From 1da3c424d123d6ffc60f021353030bb15dc66973 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 30 Jul 2015 10:49:00 +0200 Subject: [PATCH] Allow for the deletion of Caret annotations Seems poppler just renders them fine, so we set them to externally rendered and allow annotation FIXED-IN: KDE Applications 15.08 BUGS: 350740 --- core/document.cpp | 1 + generators/poppler/annots.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/core/document.cpp b/core/document.cpp index 1662fcde8..cb7bddbd6 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -3293,6 +3293,7 @@ bool Document::canRemovePageAnnotation( const Annotation * annotation ) const case Annotation::AHighlight: case Annotation::AStamp: case Annotation::AInk: + case Annotation::ACaret: return true; default: return false; diff --git a/generators/poppler/annots.cpp b/generators/poppler/annots.cpp index 3c3e3ec79..8cde64833 100644 --- a/generators/poppler/annots.cpp +++ b/generators/poppler/annots.cpp @@ -341,6 +341,7 @@ Okular::Annotation* createAnnotationFromPopplerAnnotation( Poppler::Annotation * case Poppler::Annotation::AGeom: case Poppler::Annotation::AHighlight: case Poppler::Annotation::AInk: + case Poppler::Annotation::ACaret: { externallyDrawn = true; /* fallback */