From 677166f0b8bb6d6e07c3e8223bb2a3174bde00a0 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Fri, 8 Oct 2021 21:27:32 +0100 Subject: [PATCH] CADSTAR PCB: Rule Areas have zero width Cadstar areas have a line width but this is only for display purposes. Instead CADSTAR uses the center line when determining whether a DRC violation occurred. --- pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp index 1aebc9d5ed..7e44706083 100644 --- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp +++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp @@ -821,8 +821,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryAreas( const SYMDEF_PCB& aComponent, if( area.NoVias || area.NoTracks ) { - ZONE* zone = getZoneFromCadstarShape( area.Shape, getLineThickness( area.LineCodeID ), - aFootprint ); + int lineThickness = 0; // CADSTAR areas only use the line width for display purpose + ZONE* zone = getZoneFromCadstarShape( area.Shape, lineThickness, aFootprint ); aFootprint->Add( zone, ADD_MODE::APPEND ); @@ -1522,8 +1522,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadAreas() if( area.NoVias || area.NoTracks || area.Keepout || area.Routing ) { - ZONE* zone = getZoneFromCadstarShape( area.Shape, getLineThickness( area.LineCodeID ), - m_board ); + int lineThickness = 0; // CADSTAR areas only use the line width for display purpose + ZONE* zone = getZoneFromCadstarShape( area.Shape, lineThickness, m_board ); m_board->Add( zone, ADD_MODE::APPEND );