r18527 by fschmid - Fixed load failure of the Grenouille.psd file from Bug 11746

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 5 19:33:11 UTC 2013


Author: fschmid
Date: Sat Oct  5 19:33:11 2013
New Revision: 18527

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18527
Log:
Fixed load failure of the Grenouille.psd file from Bug 11746

Modified:
    trunk/Scribus/scribus/scimgdataloader_psd.cpp

Modified: trunk/Scribus/scribus/scimgdataloader_psd.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18527&path=/trunk/Scribus/scribus/scimgdataloader_psd.cpp
==============================================================================
--- trunk/Scribus/scribus/scimgdataloader_psd.cpp (original)
+++ trunk/Scribus/scribus/scimgdataloader_psd.cpp Sat Oct  5 19:33:11 2013
@@ -652,6 +652,8 @@
 	else
 	{
 		s >> numLayers;
+		if (numLayers == 0)
+			return false;
 		loadLayer( s, header);
 	}
 	return true;




More information about the scribus-commit mailing list