[qet] [3101] element editor, fix bug in line editor

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3101
Author:   blacksun
Date:     2014-06-03 01:40:14 +0200 (Tue, 03 Jun 2014)
Log Message:
-----------
element editor, fix bug in line editor

Modified Paths:
--------------
    trunk/sources/editor/partline.cpp

Modified: trunk/sources/editor/partline.cpp
===================================================================
--- trunk/sources/editor/partline.cpp	2014-06-02 17:33:47 UTC (rev 3100)
+++ trunk/sources/editor/partline.cpp	2014-06-02 23:40:14 UTC (rev 3101)
@@ -231,7 +231,7 @@
 void PartLine::setX2(qreal x2) {
 	QPointF p = line().p2();
 	p.setX(x2);
-	setLine(QLineF(line().p2(), p));
+	setLine(QLineF(line().p1(), p));
 }
 
 /**
@@ -242,7 +242,7 @@
 void PartLine::setY2(qreal y2) {
 	QPointF p = line().p2();
 	p.setY(y2);
-	setLine(QLineF(line().p2(), p));
+	setLine(QLineF(line().p1(), p));
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/