r24303 by jghali - #16365: Opening attached PDF in Scribus leads to crash
scribus-commit
scribus-commit at lists.scribus.net
Tue Dec 1 10:30:38 UTC 2020
Author: jghali
Date: Tue Dec 1 10:30:37 2020
New Revision: 24303
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24303
Log:
#16365: Opening attached PDF in Scribus leads to crash
Modified:
trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
Modified: trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24303&path=/trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp Tue Dec 1 10:30:37 2020
@@ -797,7 +797,7 @@
LinkAction *linkAction = nullptr;
linkAction = LinkAction::parseAction(&names, pdfDoc->getCatalog()->getBaseURI());
#endif
- if (linkAction)
+ if (linkAction && (linkAction.get()->getKind() == actionJavaScript))
{
#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 86, 0)
LinkJavaScript *jsa = (LinkJavaScript*) linkAction.get();
More information about the scribus-commit
mailing list