Pcbnew: fix crash when selecting a footprint due to a not initialized pointer
This commit is contained in:
parent
d77180d9b5
commit
bdc9807dee
|
@ -2511,10 +2511,10 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCB_FP_TEXT_T:
|
case PCB_FP_TEXT_T:
|
||||||
|
text = static_cast<const FP_TEXT*>( aItem );
|
||||||
|
|
||||||
if( m_isFootprintEditor )
|
if( m_isFootprintEditor )
|
||||||
{
|
{
|
||||||
text = static_cast<const FP_TEXT*>( aItem );
|
|
||||||
|
|
||||||
if( !text->IsVisible() && !view()->IsLayerVisible( LAYER_MOD_TEXT_INVISIBLE ) )
|
if( !text->IsVisible() && !view()->IsLayerVisible( LAYER_MOD_TEXT_INVISIBLE ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue