Fix negative length reporting for arc track segments.
Fixes https://gitlab.com/kicad/code/kicad/issues/6039
This commit is contained in:
parent
91f2a0ef1d
commit
ede8499e65
|
@ -337,9 +337,9 @@ public:
|
|||
virtual double GetLength() const override
|
||||
{
|
||||
double radius = GetRadius();
|
||||
double angle = GetAngle();
|
||||
double includedAngle = std::abs( GetAngle() );
|
||||
|
||||
return radius * M_PI * angle / 180.0;
|
||||
return radius * M_PI * includedAngle / 180.0;
|
||||
}
|
||||
|
||||
EDA_ITEM* Clone() const override;
|
||||
|
|
Loading…
Reference in New Issue