From f114dbaaa3c49876b80f218cb04b7432e17936eb Mon Sep 17 00:00:00 2001 From: mkasik Date: Thu, 4 Mar 2010 15:42:58 +0000 Subject: [PATCH] - Fix showing of radio buttons (#480868) --- poppler-0.12.4-annot-appearance.patch | 14 ++++++++++++++ poppler.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 poppler-0.12.4-annot-appearance.patch diff --git a/poppler-0.12.4-annot-appearance.patch b/poppler-0.12.4-annot-appearance.patch new file mode 100644 index 0000000..2d5323d --- /dev/null +++ b/poppler-0.12.4-annot-appearance.patch @@ -0,0 +1,14 @@ +--- poppler-0.12.4/poppler/Annot.cc 2010-01-17 01:06:58.000000000 +0100 ++++ poppler-0.12.4/poppler/Annot.cc 2010-03-04 12:50:56.000000000 +0100 +@@ -3173,7 +3173,10 @@ void AnnotWidget::generateFieldAppearanc + obj1.free(); + + // get the default appearance string +- if (Form::fieldLookup(field, "DA", &obj1)->isNull()) { ++ if (Form::fieldLookup(annot, "DA", &obj1)->isNull()) { ++ obj1.free(); ++ } ++ if (!obj1.isString() && Form::fieldLookup(field, "DA", &obj1)->isNull()) { + obj1.free(); + acroForm->lookup("DA", &obj1); + } diff --git a/poppler.spec b/poppler.spec index c8a7333..303129c 100644 --- a/poppler.spec +++ b/poppler.spec @@ -2,7 +2,7 @@ Summary: PDF rendering library Name: poppler Version: 0.12.4 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: Development/Libraries URL: http://poppler.freedesktop.org/ @@ -21,6 +21,8 @@ Patch102: poppler-0.12.3-actualize-fcconfig.patch # http://bugs.freedesktop.org/show_bug.cgi?id=26264 # http://bugzilla.redhat.com/show_bug.cgi?id=563353 Patch103: poppler-0.12.3-rotated-downscale.patch +# http://bugzilla.redhat.com/show_bug.cgi?id=480868 +Patch104: poppler-0.12.4-annot-appearance.patch Requires: poppler-data >= 0.4.0 BuildRequires: automake libtool @@ -128,6 +130,7 @@ converting PDF files to a number of other formats. %patch101 -p1 -b .downscale %patch102 -p1 -b .fcconfig %patch103 -p1 -b .rotated-downscale +%patch104 -p1 -b .annot chmod -x goo/GooTimer.h @@ -231,6 +234,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Mar 4 2010 Marek Kasik - 0.12.4-2 +- Fix showing of radio buttons (#480868) + * Thu Feb 18 2010 Rex Dieter - 0.12.4-1 - popper-0.12.4