r13931 by fschmid - Fixed broken output of patterns in pdf and postscript export.
scribus-commit
scribus-commit at lists.scribus.net
Fri Aug 28 13:35:22 CEST 2009
Revision: 13931
Author: fschmid
Date: 2009-08-28T11:35:13.194845Z
Commit message: Fixed broken output of patterns in pdf and postscript export.
Changeset:
M /branches/Version135/Scribus/scribus/scimage.cpp
M /branches/Version135/Scribus/scribus/pslib.cpp
M /branches/Version135/Scribus/scribus/scribus.cpp
Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 13930)
+++ scribus/scribus.cpp (revision 13931)
@@ -9525,7 +9525,9 @@
pat.height = currItem->gHeight;
for (int as = ac; as < ae; ++as)
{
- pat.items.append(doc->Items->takeAt(ac));
+ PageItem* paItem = doc->Items->takeAt(ac);
+ paItem->setItemName(patternName+QString("_%1").arg(as-ac));
+ pat.items.append(paItem);
}
doc->addPattern(patternName, pat);
propertiesPalette->updateColorList();
Index: scribus/scimage.cpp
===================================================================
--- scribus/scimage.cpp (revision 13930)
+++ scribus/scimage.cpp (revision 13931)
@@ -1807,6 +1807,8 @@
if (pDataLoader)
pDataLoader->setRequest(imgInfo.isRequest, imgInfo.RequestProps);
}
+ else if (ext == "pat")
+ pDataLoader = new ScImgDataLoader_GIMP();
else
pDataLoader = new ScImgDataLoader_QT();
Index: scribus/pslib.cpp
===================================================================
--- scribus/pslib.cpp (revision 13930)
+++ scribus/pslib.cpp (revision 13931)
@@ -450,6 +450,8 @@
PutStream(Fonts);
if (GraySc)
PutStream(GrayCalc);
+ Optimization optim = optimization;
+ optimization = OptimizeSize;
QStringList patterns = m_Doc->getUsedPatterns();
for (int c = 0; c < patterns.count(); ++c)
{
@@ -566,6 +568,7 @@
PutStream("} def\n");
PutStream("end\n");
}
+ optimization = optim;
// PutStream("end\n");
// PutStream("%%EndSetup\n");
Prolog = "";
More information about the scribus-commit
mailing list