CADSTAR PCB: Fix loading of filled circles (load as polygon for now)

todo: need to detect if what we are drawing is a circle.
This commit is contained in:
Roberto Fernandez Bautista 2023-03-13 22:18:22 +01:00
parent 6f5321c481
commit 2cefabc99a
1 changed files with 1 additions and 3 deletions

View File

@ -2742,9 +2742,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::drawCadstarShape( const SHAPE& aCadstarShape,
case SHAPE_TYPE::SOLID:
{
// Special case solid shapes that are effectively a single line
if( aCadstarShape.Vertices.size() < 3
|| ( aCadstarShape.Vertices.size() == 3
&& aCadstarShape.Vertices.at( 0 ).End == aCadstarShape.Vertices.at( 2 ).End ) )
if( aCadstarShape.Vertices.size() < 3 )
{
drawAsOutline();
break;