mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix build of PNS log viewer
This commit is contained in:
parent
28c600edb7
commit
83020447b0
@ -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() )
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user