Better way of determining if we're reporting from the footprint editor.
This commit is contained in:
@@ -649,13 +649,11 @@ void PCB_SHAPE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
|
||||
|
||||
wxString PCB_SHAPE::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
|
||||
{
|
||||
FOOTPRINT* parentFP = nullptr;
|
||||
FOOTPRINT* parentFP = GetParentFootprint();
|
||||
|
||||
if( EDA_DRAW_FRAME* frame = dynamic_cast<EDA_DRAW_FRAME*>( aUnitsProvider ) )
|
||||
{
|
||||
if( frame->GetName() == PCB_EDIT_FRAME_NAME )
|
||||
parentFP = GetParentFootprint();
|
||||
}
|
||||
// Don't report parent footprint info from footprint editor, viewer, etc.
|
||||
if( GetBoard() && GetBoard()->GetBoardUse() == BOARD_USE::FPHOLDER )
|
||||
parentFP = nullptr;
|
||||
|
||||
if( IsOnCopperLayer() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user