[qet] [3260] Better fix for ConductorSegment::middle()

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


Revision: 3260
Author:   scorpio810
Date:     2014-08-09 01:58:39 +0200 (Sat, 09 Aug 2014)
Log Message:
-----------
Better fix for ConductorSegment::middle()

Modified Paths:
--------------
    trunk/sources/conductorsegment.cpp

Modified: trunk/sources/conductorsegment.cpp
===================================================================
--- trunk/sources/conductorsegment.cpp	2014-08-08 16:26:03 UTC (rev 3259)
+++ trunk/sources/conductorsegment.cpp	2014-08-08 23:58:39 UTC (rev 3260)
@@ -493,8 +493,8 @@
 QPointF ConductorSegment::middle() const {
 	return(
 		QPointF(
-			(point1.x() + point2.x()) / 2.0,
-			(point1.y() + point2.y()) / 2.0
+			(point1.x(), point2.x()),
+			(point1.y(), point2.y())
 		)
 	);
 }


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