Revert "Handle degenerate arcs"

It is not needed anymore, and could cause problems
for legitimate arcs.

This reverts commit ff188450e6.
This commit is contained in:
Alex Shvartzkop 2024-06-22 22:12:22 +03:00
parent e450258c0f
commit 0a75053e9d
1 changed files with 0 additions and 8 deletions

View File

@ -835,14 +835,6 @@ void PCB_PAINTER::draw( const PCB_ARC* aArc, int aLayer )
EDA_ANGLE start_angle = aArc->GetArcAngleStart(); EDA_ANGLE start_angle = aArc->GetArcAngleStart();
EDA_ANGLE angle = aArc->GetAngle(); EDA_ANGLE angle = aArc->GetAngle();
if( std::abs( center.x ) > std::numeric_limits<int>::max() / 2
|| std::abs( center.y ) > std::numeric_limits<int>::max() / 2 )
{
const PCB_TRACK* track = static_cast<const PCB_TRACK*>( aArc );
draw( track, aLayer );
return;
}
if( IsNetnameLayer( aLayer ) ) if( IsNetnameLayer( aLayer ) )
{ {
// Ummm, yeah. Anyone fancy implementing text on a path? // Ummm, yeah. Anyone fancy implementing text on a path?