r22915 by jghali - #15616: After importing a PDF file scribus saves corrupt .sla files

scribus-commit scribus-commit at lists.scribus.net
Tue Mar 26 23:47:58 UTC 2019


Author: jghali
Date: Tue Mar 26 23:47:57 2019
New Revision: 22915

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22915
Log:
#15616: After importing a PDF file scribus saves corrupt .sla files

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=22915&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 Mar 26 23:47:57 2019
@@ -1041,6 +1041,9 @@
 			u = s1->getChar(i) & 0xff;
 			++i;
 		}
+		// #15616: imagemagick may write unicode strings incorrectly in PDF
+		if (u == 0)
+			continue;
 		result += QChar( u );
 	}
 	return result;




More information about the scribus-commit mailing list