diff options
author | Albert Astals Cid <aacid@kde.org> | 2014-05-04 16:21:24 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2014-05-04 16:21:24 +0200 |
commit | 7b94b119f07713af7b8b9f1ac3ea3f1d35c1e240 (patch) | |
tree | ed0836568750c47b7c0588b53eda0b8855807efc | |
parent | c859d2b891a115c79d04db14463791dfb1c46a20 (diff) | |
parent | bae836cd3dd3511ca9cf4745626142334bafd1a6 (diff) |
Merge remote-tracking branch 'origin/poppler-0.26'
-rw-r--r-- | poppler/Annot.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc index ab48be63..fa29739a 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -29,6 +29,7 @@ // Copyright (C) 2012 Tobias Koenig <tokoe@kdab.com> // Copyright (C) 2013 Peter Breitenlohner <peb@mppmu.mpg.de> // Copyright (C) 2013 Adrian Johnson <ajohnson@redneon.com> +// Copyright (C) 2014 Marek Kasik <mkasik@redhat.com> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -4926,7 +4927,8 @@ void AnnotWidget::drawFormFieldButton(GfxResources *resources, GooString *da) { switch (static_cast<FormFieldButton *>(field)->getButtonType()) { case formButtonRadio: { //~ Acrobat doesn't draw a caption if there is no AP dict (?) - if (appearState && appearState->cmp("Off") != 0) { + if (appearState && appearState->cmp("Off") != 0 && + static_cast<FormFieldButton *>(field)->getState(appearState->getCString())) { if (caption) { drawText(caption, da, resources, gFalse, 0, fieldQuadCenter, gFalse, gTrue); |