r18422 by jghali - #11701: the file does not open (fix crash caused by empty pattern)
scribus-commit
scribus-commit at lists.scribus.net
Sun Aug 18 05:48:11 UTC 2013
Author: jghali
Date: Sun Aug 18 05:48:10 2013
New Revision: 18422
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18422
Log:
#11701: the file does not open (fix crash caused by empty pattern)
Modified:
branches/Version14x/Scribus/scribus/scribusdoc.cpp
Modified: branches/Version14x/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18422&path=/branches/Version14x/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribusdoc.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribusdoc.cpp Sun Aug 18 05:48:10 2013
@@ -3645,6 +3645,8 @@
for (int c = 0; c < patterns.count(); ++c)
{
ScPattern pa = docPatterns[patterns[c]];
+ if (pa.items.count() <= 0)
+ continue;
for (int o = 0; o < pa.items.count(); o++)
{
PageItem *ite = pa.items.at(o);
More information about the scribus-commit
mailing list