Improve arc construction using angles from arc geometry manager.
Fixes https://gitlab.com/kicad/code/kicad/issues/11713
This commit is contained in:
parent
2741d0eb4b
commit
d26b59a0bf
|
@ -2136,10 +2136,20 @@ static void updateArcFromConstructionMgr( const KIGFX::PREVIEW::ARC_GEOM_MANAGER
|
||||||
|
|
||||||
aArc.SetCenter( vec );
|
aArc.SetCenter( vec );
|
||||||
|
|
||||||
|
if( aMgr.GetSubtended() < ANGLE_0 )
|
||||||
|
{
|
||||||
vec = aMgr.GetStartRadiusEnd();
|
vec = aMgr.GetStartRadiusEnd();
|
||||||
aArc.SetStart( vec );
|
aArc.SetStart( vec );
|
||||||
vec = aMgr.GetEndRadiusEnd();
|
vec = aMgr.GetEndRadiusEnd();
|
||||||
aArc.SetEnd( vec );
|
aArc.SetEnd( vec );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vec = aMgr.GetEndRadiusEnd();
|
||||||
|
aArc.SetStart( vec );
|
||||||
|
vec = aMgr.GetStartRadiusEnd();
|
||||||
|
aArc.SetEnd( vec );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue