Fix build of PNS log viewer

This commit is contained in:
Jon Evans 2024-11-05 08:02:00 -05:00
parent 28c600edb7
commit 83020447b0
2 changed files with 5 additions and 3 deletions

View File

@ -183,7 +183,7 @@ std::unique_ptr<PNS::VIA> PNS_LOG_FILE::parsePnsViaFromString( wxStringTokenizer
SHAPE_CIRCLE* sc = static_cast<SHAPE_CIRCLE*>( sh.get() );
via->SetPos( sc->GetCenter() );
via->SetDiameter( 2 * sc->GetRadius() );
via->SetDiameter( PNS::VIA::ALL_LAYERS, 2 * sc->GetRadius() );
}
else if( cmd == wxS( "drill" ) )
{
@ -224,7 +224,8 @@ bool comparePnsItems( const PNS::ITEM* a , const PNS::ITEM* b )
const PNS::VIA* va = static_cast<const PNS::VIA*>(a);
const PNS::VIA* vb = static_cast<const PNS::VIA*>(b);
if( va->Diameter() != vb->Diameter() )
// TODO(JE) padstacks
if( va->Diameter( PNS::VIA::ALL_LAYERS ) != vb->Diameter( PNS::VIA::ALL_LAYERS ) )
return false;
if( va->Drill() != vb->Drill() )

View File

@ -206,7 +206,8 @@ void PNS_TEST_DEBUG_DECORATOR::AddItem( const PNS::ITEM* aItem, const KIGFX::COL
int aOverrideWidth, const wxString& aName,
const SRC_LOCATION_INFO& aSrcLoc )
{
SHAPE* sh = aItem->Shape()->Clone();
// TODO(JE) padstacks
SHAPE* sh = aItem->Shape( -1 )->Clone();
PNS_DEBUG_SHAPE* ent = new PNS_DEBUG_SHAPE();
ent->m_shapes.push_back( sh );