From 0a75053e9df856eda65d6d41cbd2d8b022505296 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sat, 22 Jun 2024 22:12:22 +0300 Subject: [PATCH] Revert "Handle degenerate arcs" It is not needed anymore, and could cause problems for legitimate arcs. This reverts commit ff188450e618755e7d5f7de34b6e7e1c2533def3. --- pcbnew/pcb_painter.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 16b888e62b..f1e4ac7bd9 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -835,14 +835,6 @@ void PCB_PAINTER::draw( const PCB_ARC* aArc, int aLayer ) EDA_ANGLE start_angle = aArc->GetArcAngleStart(); EDA_ANGLE angle = aArc->GetAngle(); - if( std::abs( center.x ) > std::numeric_limits::max() / 2 - || std::abs( center.y ) > std::numeric_limits::max() / 2 ) - { - const PCB_TRACK* track = static_cast( aArc ); - draw( track, aLayer ); - return; - } - if( IsNetnameLayer( aLayer ) ) { // Ummm, yeah. Anyone fancy implementing text on a path?