Make Clone functions for NETINFO_ITEM and PCB_MARKER

This commit is contained in:
Mikolaj Wielgus 2021-12-01 00:26:47 +01:00
parent 098f234311
commit 515aed7408
2 changed files with 10 additions and 0 deletions

View File

@ -96,6 +96,11 @@ public:
{
}
EDA_ITEM* Clone() const override
{
return new NETINFO_ITEM( *this );
}
void SetNetClass( const NETCLASSPTR& aNetClass );
/**

View File

@ -77,6 +77,11 @@ public:
return HitTestMarker( aPosition, aAccuracy );
}
EDA_ITEM* Clone() const override
{
return new PCB_MARKER( *this );
}
GAL_LAYER_ID GetColorLayer() const;
std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer ) const override;