GNOME Bugzilla – Bug 750548
Changing subtype of text markup annotations looses author
Last modified: 2015-06-08 11:53:27 UTC
When changing the subtype of a text markup annotation (say from highlight to underline), then the author is not saved when saving a copy of the pdf. Steps to reproduce: 1. Create a highlight annotation. 2. Save a copy of the pdf. 3. Open the copy created in step 2. 4. Change the subtype of the annotation created in step 1 to underline. 5. Save another copy of the pdf. 6. Open the copy created in step 5. 7. Observe that the author is NULL.
In fact it is not just the author, which is not saved, but also any additional popup annotation gets lost.
Created attachment 304755 [details] [review] pdf: Fixed wrong type-check in copy_poppler_annot The problem is that the wrong function is used when checking the types of the parameters passed to copy_poppler_annot(). EV_IS_ANNOTATION_MARKUP is used, while it should be POPPLER_IS_ANNOT_MARKUP. The attached patch fixes this issue.
Comment on attachment 304755 [details] [review] pdf: Fixed wrong type-check in copy_poppler_annot Good catch! thanks