mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Better fix for ConductorSegment::middle()
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3260 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -493,8 +493,8 @@ bool ConductorSegment::hasNextSegment() const {
|
|||||||
QPointF ConductorSegment::middle() const {
|
QPointF ConductorSegment::middle() const {
|
||||||
return(
|
return(
|
||||||
QPointF(
|
QPointF(
|
||||||
(point1.x() + point2.x()) / 2.0,
|
(point1.x(), point2.x()),
|
||||||
(point1.y() + point2.y()) / 2.0
|
(point1.y(), point2.y())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user