From ff5b82d61acf003b2855fcb4a4e3a762e36c5555 Mon Sep 17 00:00:00 2001 From: blacksun Date: Mon, 2 Jun 2014 23:40:14 +0000 Subject: [PATCH] element editor, fix bug in line editor git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3101 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/partline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/editor/partline.cpp b/sources/editor/partline.cpp index cbdfc7314..f35edec0d 100644 --- a/sources/editor/partline.cpp +++ b/sources/editor/partline.cpp @@ -231,7 +231,7 @@ void PartLine::setY1(qreal y1) { 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::setX2(qreal x2) { void PartLine::setY2(qreal y2) { QPointF p = line().p2(); p.setY(y2); - setLine(QLineF(line().p2(), p)); + setLine(QLineF(line().p1(), p)); } /**