[evince] pdf: Fixed wrong type-check in copy_poppler_annot.
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] pdf: Fixed wrong type-check in copy_poppler_annot.
- Date: Mon, 8 Jun 2015 11:52:59 +0000 (UTC)
commit e14e86c5a9ad71a6880a8efe03bb5d514dd04b86
Author: Philipp Reinkemeier <philipp reinkemeier offis de>
Date: Mon Jun 8 11:44:01 2015 +0200
pdf: Fixed wrong type-check in copy_poppler_annot.
https://bugzilla.gnome.org/show_bug.cgi?id=750548
backend/pdf/ev-poppler.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index c9bfd5b..1d25ed5 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -3415,7 +3415,7 @@ copy_poppler_annot (PopplerAnnot* src_annot,
poppler_annot_set_color (dst_annot, color);
g_free (color);
- if (EV_IS_ANNOTATION_MARKUP (src_annot)) {
+ if (POPPLER_IS_ANNOT_MARKUP (src_annot) && POPPLER_IS_ANNOT_MARKUP (dst_annot)) {
PopplerAnnotMarkup *src_markup = POPPLER_ANNOT_MARKUP (src_annot);
PopplerAnnotMarkup *dst_markup = POPPLER_ANNOT_MARKUP (dst_annot);
char *label;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]