Wrong visualization if value negative.
--HG-- branch : develop
This commit is contained in:
parent
0884d22f65
commit
33a235e8a3
|
@ -183,8 +183,8 @@ QLineF VGObject::BuildLine(const QPointF &p1, const qreal &length, const qreal &
|
||||||
{
|
{
|
||||||
QLineF line = QLineF();
|
QLineF line = QLineF();
|
||||||
line.setP1(p1);
|
line.setP1(p1);
|
||||||
|
line.setAngle(angle);// First set angle than length. Length can have negative value.
|
||||||
line.setLength(length);
|
line.setLength(length);
|
||||||
line.setAngle(angle);
|
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user