Commit f64b3a51 authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: fix crash after displaying "The text thickness is too large for the...

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)
parent ba0fbd19
...@@ -189,7 +189,7 @@ void DIALOG_PCB_TEXT_PROPERTIES::OnOkClick( wxCommandEvent& event ) ...@@ -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 ); int maxthickness = Clamp_Text_PenSize( m_SelectedPCBText->m_Thickness, m_SelectedPCBText->m_Size );
if( m_SelectedPCBText->m_Thickness > maxthickness ) 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; m_SelectedPCBText->m_Thickness = maxthickness;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment