r16903 by fschmid - Fixed crash in the .ai importer.
scribus-commit
scribus-commit at lists.scribus.net
Thu Oct 13 21:35:27 UTC 2011
Author: fschmid
Date: Thu Oct 13 21:35:27 2011
New Revision: 16903
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16903
Log:
Fixed crash in the .ai importer.
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=16903&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 Thu Oct 13 21:35:27 2011
@@ -1679,11 +1679,14 @@
}
else if (command == "*U")
{
- WasU = false;
- ite = m_Doc->Items->at(m_Doc->Items->count()-1);
- FPoint wh = getMaxClipF(&ite->PoLine);
- ite->setWidthHeight(wh.x(),wh.y());
- m_Doc->AdjustItemSize(ite);
+ if (m_Doc->Items->count() > 0)
+ {
+ WasU = false;
+ ite = m_Doc->Items->at(m_Doc->Items->count()-1);
+ FPoint wh = getMaxClipF(&ite->PoLine);
+ ite->setWidthHeight(wh.x(),wh.y());
+ m_Doc->AdjustItemSize(ite);
+ }
}
else if ((command == "u") || (command == "q"))
{
More information about the scribus-commit
mailing list