Browse Source

prevent NULL dereference in dialog_text_properties

pull/13/head
Seth Hillbrand 7 years ago
parent
commit
efbc50b7b8
  1. 2
      pcbnew/dialogs/dialog_text_properties.cpp

2
pcbnew/dialogs/dialog_text_properties.cpp

@ -277,7 +277,7 @@ bool DIALOG_TEXT_PROPERTIES::TransferDataToWindow()
m_DimensionUnitsOpt->SetSelection( units == MILLIMETRES ? 2 : useMils ? 1 : 0 );
}
if( m_item->Type() == PCB_MODULE_TEXT_T )
if( m_item->Type() == PCB_MODULE_TEXT_T && m_modText )
{
MODULE* module = dynamic_cast<MODULE*>( m_modText->GetParent() );
wxString msg;

Loading…
Cancel
Save