r21467 by jghali - #14328: incorrect export of inline groups to PDF when offset to baseline applied

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 25 21:20:17 UTC 2016


Author: jghali
Date: Tue Oct 25 21:20:17 2016
New Revision: 21467

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21467
Log:
#14328: incorrect export of inline groups to PDF when offset to baseline applied

Modified:
    branches/Version14x/Scribus/scribus/pdflib_core.cpp

Modified: branches/Version14x/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21467&path=/branches/Version14x/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pdflib_core.cpp	(original)
+++ branches/Version14x/Scribus/scribus/pdflib_core.cpp	Tue Oct 25 21:20:17 2016
@@ -4464,11 +4464,8 @@
 				else
 					mm.translate(x + hl->glyph.xoffset + embedded->gXpos * (style.scaleH() / 1000.0), (y + hl->glyph.yoffset - (embedded->gHeight * (style.scaleV() / 1000.0)) + embedded->gYpos * (style.scaleV() / 1000.0)));
 				if (style.baselineOffset() != 0)
-					mm.translate(0, embedded->gHeight * (style.baselineOffset() / 1000.0));
-				if (style.scaleH() != 1000)
-					mm.scale(style.scaleH() / 1000.0, 1);
-				if (style.scaleV() != 1000)
-					mm.scale(1, style.scaleV() / 1000.0);
+					mm.translate(0, -embedded->gHeight * (style.baselineOffset() / 1000.0));
+				mm.scale(style.scaleH() / 1000.0, style.scaleV() / 1000.0);
 				mm.rotate(embedded->rotation());
 				cl.map( mm );
 				embedded->PoLine = cl;




More information about the scribus-commit mailing list