r20964 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Feb 10 20:33:23 UTC 2016
Author: jghali
Date: Wed Feb 10 20:33:22 2016
New Revision: 20964
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20964
Log:
#13649, bad pattern placement when exporting to PDF and using image X-Pos/Y-Pos: partial fix, there are still issues when using pattern X/Y offset
Modified:
trunk/Scribus/scribus/pdflib_core.cpp
Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20964&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Wed Feb 10 20:33:22 2016
@@ -7019,6 +7019,12 @@
}
if (kind == 1)
mpa.translate(-currItem->lineWidth() / 2.0, currItem->lineWidth() / 2.0);
+ // #13649, bad pattern placement: improve the situation, does not totally fix it in complex cases
+ if ((kind == 2) && currItem->isImageFrame())
+ {
+ mpa.translate(currItem->imageXOffset() * currItem->imageXScale(), -currItem->imageYOffset() * currItem->imageYScale());
+ mpa.rotate(-currItem->imageRotation());
+ }
mpa.translate(patternOffsetX, -patternOffsetY);
if (currItem->itemType() == PageItem::Symbol)
mpa.rotate(patternRotation);
More information about the scribus-commit
mailing list