r17272 by fschmid - IDML Importer: added support for image offsets inside image frames.

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 2 22:40:39 UTC 2012


Author: fschmid
Date: Thu Feb  2 22:40:39 2012
New Revision: 17272

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17272
Log:
IDML Importer: added support for image offsets inside image frames.

Modified:
    trunk/Scribus/scribus/plugins/import/idml/importidml.cpp

Modified: trunk/Scribus/scribus/plugins/import/idml/importidml.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17272&path=/trunk/Scribus/scribus/plugins/import/idml/importidml.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/idml/importidml.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/idml/importidml.cpp Thu Feb  2 22:40:39 2012
@@ -2273,7 +2273,7 @@
 							item->AspectRatio = true;
 							m_Doc->loadPict(fileName, item);
 							item->setImageXYScale(scXi / item->pixm.imgInfo.xres * 72, scYi / item->pixm.imgInfo.xres * 72);
-							item->setImageXYOffset(0, 0);
+							item->setImageXYOffset((dxi - grOffset.x()) / item->imageXScale(), (dyi - grOffset.y()) / item->imageYScale());
 							item->setImageRotation(0);
 						}
 					}
@@ -2291,7 +2291,7 @@
 					item->AspectRatio = true;
 					m_Doc->loadPict(fileName, item);
 					item->setImageXYScale(scXi / item->pixm.imgInfo.xres * 72, scYi / item->pixm.imgInfo.xres * 72);
-					item->setImageXYOffset(0, 0);
+					item->setImageXYOffset((dxi - grOffset.x()) / item->imageXScale(), (dyi - grOffset.y()) / item->imageYScale());
 					item->setImageRotation(0);
 				}
 			}




More information about the scribus-commit mailing list