r18148 by fschmid - Fixed broken DRW-Import.

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 16 20:53:49 UTC 2013


Author: fschmid
Date: Sat Feb 16 20:53:49 2013
New Revision: 18148

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18148
Log:
Fixed broken DRW-Import.

Modified:
    trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp

Modified: trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18148&path=/trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp Sat Feb 16 20:53:49 2013
@@ -1262,10 +1262,8 @@
 	ds >> flags;
 	QPainterPath path;
 	QPointF posEnd, posMid, posStart;
-	QTransform mat;
 	QLineF sLin, eLin;
-	FPoint wh;
-//	QPointF position = getCoordinate(ds);
+	getCoordinate(ds);						// don't remove dummy parameters
 	double boundingBoxX = getValue(ds);
 	double boundingBoxY = getValue(ds);
 	double boundingBoxW = getValue(ds);
@@ -2002,6 +2000,9 @@
 			ite->setLineWidth(ite->lineWidth() / qMin(scx, scy));
 		}
 	}
+	FPoint wh = getMaxClipF(&ite->PoLine);
+	ite->setWidthHeight(wh.x(),wh.y());
+	m_Doc->AdjustItemSize(ite);
 	ite->OldB2 = ite->width();
 	ite->OldH2 = ite->height();
 	ite->updateClip();




More information about the scribus-commit mailing list