Pcbnew: fix crash after displaying "The text thickness is too large for the text size. It will be clamped" when editing pcb text properties (Linux specfic)

This commit is contained in:
jean-pierre charras 2010-12-09 19:15:01 +01:00
parent ba0fbd1924
commit f64b3a5188
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ void DIALOG_PCB_TEXT_PROPERTIES::OnOkClick( wxCommandEvent& event )
int maxthickness = Clamp_Text_PenSize( m_SelectedPCBText->m_Thickness, m_SelectedPCBText->m_Size );
if( m_SelectedPCBText->m_Thickness > maxthickness )
{
DisplayError(this, _("The text thickness is too large for the text size. It will be clamped"));
DisplayError(NULL, _("The text thickness is too large for the text size. It will be clamped"));
m_SelectedPCBText->m_Thickness = maxthickness;
}