Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 18648 → Rev 18649

/trunk/Scribus/scribus/nftrcreader.cpp
79,7 → 79,7
enCat = attrs.value(i);
}
}
tmpTemplate = new nfttemplate(new QFile(currentFile), category); // create a new template
tmpTemplate = new nfttemplate(currentFile, category); // create a new template
tmpTemplate->enCategory = enCat;
}
 
138,8 → 138,15
{ // new template starts here
inTemplate = false;
if (tmpTemplate != NULL) // If we have a template already created
{
if (tmpTemplate->isValid()) // and the template really exists push
templates->push_back(tmpTemplate); // it to the templates vector and start a new one
else
{
delete tmpTemplate;
tmpTemplate = 0;
}
}
}
if (inTemplate) {
if (inName && name == "name")