Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 16083 → Rev 16084

/trunk/Scribus/scribus/serializer.cpp
183,9 → 183,15
UniqueID handler( & outputhandler );
handler.beginDoc();
handler.begin("SCRIBUSFRAGMENT", attr);
if (selection.count() == 0)
{
handler.end("SCRIBUSFRAGMENT");
handler.endDoc();
return;
}
ScribusDoc* doc = selection.itemAt(0)->doc();
QMap<QString,int>::Iterator itf;
for (itf = doc->UsedFonts.begin(); itf != doc->UsedFonts.end(); ++itf)
{
/trunk/Scribus/scribus/scribusdoc.cpp
1955,10 → 1955,13
sourceSelection.addItem(itemToCopy);
}
}
Selection targetSelection(Serializer(*this).cloneObjects(sourceSelection));
for(int si(0); si < targetSelection.count(); ++si)
if (sourceSelection.count() > 0)
{
targetSelection.itemAt(si)->setLayer(whereToInsert);
Selection targetSelection(Serializer(*this).cloneObjects(sourceSelection));
for(int si(0); si < targetSelection.count(); ++si)
{
targetSelection.itemAt(si)->setLayer(whereToInsert);
}
}
}