From f64b3a51881041868f557d9211868e4e06698f7f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 9 Dec 2010 19:15:01 +0100 Subject: [PATCH] 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) --- pcbnew/dialogs/dialog_pcb_text_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_pcb_text_properties.cpp b/pcbnew/dialogs/dialog_pcb_text_properties.cpp index 2c83383ccd..650c8fb400 100644 --- a/pcbnew/dialogs/dialog_pcb_text_properties.cpp +++ b/pcbnew/dialogs/dialog_pcb_text_properties.cpp @@ -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; }