r14576 by fschmid - DRW Importer: fixed non working Line creation.

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 25 20:30:22 CET 2010


Revision: 14576
Author: fschmid
Date: 2010-01-25T19:27:21.281313Z
Commit message: DRW Importer: fixed non working Line creation.

Changeset: 
M  /trunk/Scribus/scribus/plugins/import/drw/importdrw.cpp

Diffs:
Index: scribus/plugins/import/drw/importdrw.cpp
===================================================================
--- scribus/plugins/import/drw/importdrw.cpp	(revision 14575)
+++ scribus/plugins/import/drw/importdrw.cpp	(revision 14576)
@@ -944,13 +944,13 @@
 	}
 	if (last)
 		return;
-/*	if ((symbolCount > 53) && (symbolCount < 57))
+/*	if ((symbolCount > 30) && (symbolCount < 41))
 	{
 		QFile f(QString("/home/franz/cmddatas%1.bin").arg(symbolCount));
 		f.open(QIODevice::WriteOnly);
 		f.write(cmdData);
 		f.close();
-	} */
+	}*/
 	int z;
 	quint8 data8, flags, patternIndex, appFlags;
 	quint16 dummy, nPoints, nItems;
@@ -1028,6 +1028,9 @@
 			gList.groupItem->ClipEdited = true;
 			gList.groupItem->FrameType = 3;
 			gList.groupItem->setTextFlowMode(PageItem::TextFlowDisabled);
+			gList.groupItem->OldB2 = gList.groupItem->width();
+			gList.groupItem->OldH2 = gList.groupItem->height();
+			gList.groupItem->updateClip();
 			Elements.append(gList.groupItem);
 			cmdText += QString("Group  Count %1").arg(dummy);
 		/*	if (printMSG)
@@ -1088,10 +1091,11 @@
 			lineWidth = patternIndex * scaleFactor;
 			Coords.resize(0);
 			Coords.svgInit();
-			Coords.svgMoveTo(posStart.x(), posStart.y());
-			Coords.svgLineTo(posEnd.x(), posEnd.y());
+			Coords.svgMoveTo(fabs(posStart.x()), fabs(posStart.y()));
+			Coords.svgLineTo(fabs(posEnd.x()), fabs(posEnd.y()));
 			z = m_Doc->itemAdd(PageItem::PolyLine, PageItem::Unspecified, baseX + bBox.x() + bX + groupX, baseY + bBox.y() + bY + groupY, bBox.width(), bBox.height(), lineWidth, fillC, lineColor, true);
 			currentItem = m_Doc->Items->at(z);
+			currentItem->PoLine = Coords.copy();
 			handleLineStyle(currentItem, flags, lineColor);
 			finishItem(currentItem);
 			break;




More information about the scribus-commit mailing list