diff options
author | Arseniy Lartsev <arseniy@alumni.chalmers.se> | 2016-04-28 23:59:05 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2016-04-28 23:59:05 +0200 |
commit | dbbe1590d49e620ef0743cb1b99b0b5b9a1f36ec (patch) | |
tree | 14eef868cf63d6af36612804f4ec02169c4d6a00 /qt4 | |
parent | 1cc93886eee3204e2ccd8bcc8b90306e809255e0 (diff) |
qt: Fix crash on certain PDF form item activation actions
Bug #94873
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/src/poppler-page.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc index 83bcf4a5..9e466daa 100644 --- a/qt4/src/poppler-page.cc +++ b/qt4/src/poppler-page.cc @@ -15,6 +15,7 @@ * Copyright (C) 2012, 2015 Adam Reichold <adamreichold@myopera.com> * Copyright (C) 2012, 2013 Thomas Freitag <Thomas.Freitag@alfa.de> * Copyright (C) 2015 William Bader <williambader@hotmail.com> + * Copyright (C) 2016 Arseniy Lartsev <arseniy@alumni.chalmers.se> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -205,7 +206,7 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo if ( lrn->hasScreenAnnot() ) reference = lrn->getScreenAnnot(); - popplerLink = new LinkRendition( linkArea, lrn->getMedia()->copy(), lrn->getOperation(), UnicodeParsedString( lrn->getScript() ), reference ); + popplerLink = new LinkRendition( linkArea, lrn->getMedia() ? lrn->getMedia()->copy() : NULL, lrn->getOperation(), UnicodeParsedString( lrn->getScript() ), reference ); } break; |