View Issue Details

IDProjectCategoryView StatusLast Update
0010377ScribusImport / Exportpublic2011-12-30 16:38
Reportercezaryece Assigned Tojghali  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.5.0svn 
Fixed in Version1.5.0svn 
Summary0010377: [BUG] Scribus 1.5 crash during openning 1.4 file
DescriptionDuring opening 1.4 SLA file crash (segfault 11) occurs.

It is in line 5518 of scribusdoc.cpp:
bool ScribusDoc::itemNameExists(const QString checkItemName)
{
    bool found = false;
    QList<PageItem*> allItems;
    uint docItemCount = Items->count();
    for (uint i = 0; i < docItemCount; ++i)
    {
here ----> PageItem *currItem = DocItems.at(i);
        if (currItem->isGroup())
            allItems = currItem->asGroupFrame()->getItemList();
        else

and it is because Items has one item, but DocItems is empty.
TagsNo tags attached.
Patch

Activities

cezaryece

2011-11-15 11:53

updater   ~0027192

Seems that changing line 5515 to:

 uint docItemCount = DocItems.count();

fixing problem

Issue History

Date Modified Username Field Change
2011-11-15 11:42 cezaryece New Issue
2011-11-15 11:53 cezaryece Note Added: 0027192
2011-11-15 21:23 jghali Status new => resolved
2011-11-15 21:23 jghali Fixed in Version => 1.5.0svn
2011-11-15 21:23 jghali Resolution open => fixed
2011-11-15 21:23 jghali Assigned To => jghali
2011-12-30 16:38 cbradney Status resolved => closed