Eliminate angle as double in SWIG wrapper

Fixes https://gitlab.com/kicad/code/kicad/issues/13171
This commit is contained in:
Jan Mrázek 2022-12-15 13:51:53 +01:00 committed by Seth Hillbrand
parent 66e9d5c61c
commit 66c2462c7e
1 changed files with 2 additions and 2 deletions

View File

@ -12,12 +12,12 @@
%extend PCB_SHAPE %extend PCB_SHAPE
{ {
double GetArcAngleStart() EDA_ANGLE GetArcAngleStart()
{ {
EDA_ANGLE startAngle; EDA_ANGLE startAngle;
EDA_ANGLE endAngle; EDA_ANGLE endAngle;
$self->CalcArcAngles( startAngle, endAngle ); $self->CalcArcAngles( startAngle, endAngle );
return startAngle.AsTenthsOfADegree(); return startAngle;
} }
%pythoncode %pythoncode