prevent NULL dereference in dialog_text_properties

This commit is contained in:
Seth Hillbrand 2019-01-02 19:40:29 -08:00
parent 6662891f34
commit efbc50b7b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;