r18740 by fschmid - Fixed Bug #11985: Botched import of graphics in PUB files

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 18 08:37:02 UTC 2014


Author: fschmid
Date: Sat Jan 18 08:37:01 2014
New Revision: 18740

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18740
Log:
Fixed Bug #11985: Botched import of graphics in PUB files

Modified:
    trunk/Scribus/scribus/plugins/import/pub/importpub.cpp

Modified: trunk/Scribus/scribus/plugins/import/pub/importpub.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18740&path=/trunk/Scribus/scribus/plugins/import/pub/importpub.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pub/importpub.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pub/importpub.cpp Sat Jan 18 08:37:01 2014
@@ -492,9 +492,11 @@
 								if (rot != 0)
 								{
 									QTransform mm;
+									mm.translate(baR.x(), baR.y());
 									mm.translate(baR.width() / 2.0, baR.height() / 2.0);
 									mm.rotate(rot);
 									mm.translate(-baR.width() / 2.0, -baR.height() / 2.0);
+									mm.translate(-baR.x(), -baR.y());
 									ba = mm.map(ba);
 									baR = ba.boundingRect();
 									ite->setXYPos(baseX + baR.x(), baseY + baR.y(), true);




More information about the scribus-commit mailing list