mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02: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:
parent
e5b8c89901
commit
82c1fd6c8a
@ -493,8 +493,8 @@ bool ConductorSegment::hasNextSegment() const {
|
||||
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())
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user