r18679 by fschmid - Fixed Bug #11913: Activating preview for AI colour palette crashes Scribus
scribus-commit
scribus-commit at lists.scribus.net
Mon Jan 6 16:22:09 UTC 2014
Author: fschmid
Date: Mon Jan 6 16:22:09 2014
New Revision: 18679
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18679
Log:
Fixed Bug #11913: Activating preview for AI colour palette crashes Scribus
Modified:
trunk/Scribus/scribus/plugins/import/ai/importai.cpp
Modified: trunk/Scribus/scribus/plugins/import/ai/importai.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18679&path=/trunk/Scribus/scribus/plugins/import/ai/importai.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/ai/importai.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/ai/importai.cpp Mon Jan 6 16:22:09 2014
@@ -182,7 +182,8 @@
tmpSel->setGroupRect();
double xs = tmpSel->width();
double ys = tmpSel->height();
- tmpImage = Elements.at(0)->DrawObj_toImage(500);
+ if (Elements.count() > 0)
+ tmpImage = Elements.at(0)->DrawObj_toImage(500);
tmpImage.setText("XSize", QString("%1").arg(xs));
tmpImage.setText("YSize", QString("%1").arg(ys));
m_Doc->m_Selection->delaySignalsOff();
More information about the scribus-commit
mailing list