eeschema: fix segfault when edit text and empty editing text
This commit is contained in:
parent
eee9738755
commit
cedcd2bace
|
@ -257,7 +257,10 @@ void DIALOG_LABEL_EDITOR::TextPropertiesAccept( wxCommandEvent& aEvent )
|
||||||
if( !text.IsEmpty() )
|
if( !text.IsEmpty() )
|
||||||
m_CurrentText->m_Text = text;
|
m_CurrentText->m_Text = text;
|
||||||
else if( !m_CurrentText->IsNew() )
|
else if( !m_CurrentText->IsNew() )
|
||||||
|
{
|
||||||
DisplayError( this, _( "Empty Text!" ) );
|
DisplayError( this, _( "Empty Text!" ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_CurrentText->SetOrientation( m_TextOrient->GetSelection() );
|
m_CurrentText->SetOrientation( m_TextOrient->GetSelection() );
|
||||||
text = m_TextSize->GetValue();
|
text = m_TextSize->GetValue();
|
||||||
|
|
Loading…
Reference in New Issue