r16120 by jghali - #9597: crash when opening document

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 20 01:57:52 CET 2010


Author: jghali
Date: Mon Dec 20 00:57:52 2010
New Revision: 16120

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16120
Log:
#9597: crash when opening document

Modified:
    trunk/Scribus/scribus/documentchecker.cpp

Modified: trunk/Scribus/scribus/documentchecker.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16120&path=/trunk/Scribus/scribus/documentchecker.cpp
==============================================================================
--- trunk/Scribus/scribus/documentchecker.cpp (original)
+++ trunk/Scribus/scribus/documentchecker.cpp Mon Dec 20 00:57:52 2010
@@ -339,7 +339,7 @@
 				itemError.insert(NotCMYKOrSpot, 0);
 		}
 		if (itemError.count() != 0)
-			currDoc->masterItemErrors.insert(currItem->ItemNr, itemError);
+			currDoc->masterItemErrors.insert(d /*currItem->ItemNr*/, itemError);
 	}
 	for (int d = 0; d < currDoc->DocItems.count(); ++d)
 	{
@@ -591,7 +591,7 @@
 				itemError.insert(NotCMYKOrSpot, 0);
 		}
 		if (itemError.count() != 0)
-			currDoc->docItemErrors.insert(currItem->ItemNr, itemError);
+			currDoc->docItemErrors.insert(d /*currItem->ItemNr*/, itemError);
 	}
 
 	return ((currDoc->docItemErrors.count() != 0) || (currDoc->masterItemErrors.count() != 0) || (currDoc->docLayerErrors.count() != 0));




More information about the scribus-commit mailing list