From b95ab35534b990ab6c53bbbf5826f75c487801d4 Mon Sep 17 00:00:00 2001 From: "marco." Date: Sat, 24 Nov 2012 23:03:30 +0100 Subject: [PATCH] MacOSX: Fixes Crash when adding text on pcbnew (bug #891347) --- pcbnew/dialogs/dialog_pcb_text_properties.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/dialogs/dialog_pcb_text_properties.cpp b/pcbnew/dialogs/dialog_pcb_text_properties.cpp index 9de5af6f5b..3e5ad107f1 100644 --- a/pcbnew/dialogs/dialog_pcb_text_properties.cpp +++ b/pcbnew/dialogs/dialog_pcb_text_properties.cpp @@ -95,7 +95,13 @@ DIALOG_PCB_TEXT_PROPERTIES::DIALOG_PCB_TEXT_PROPERTIES( PCB_EDIT_FRAME* parent, void PCB_EDIT_FRAME::InstallTextPCBOptionsFrame( TEXTE_PCB* TextPCB, wxDC* DC ) { m_canvas->SetIgnoreMouseEvents( true ); +#ifndef __WXMAC__ DIALOG_PCB_TEXT_PROPERTIES dlg( this, TextPCB, DC ); +#else + // Avoid "writes" in the dialog, creates errors with WxOverlay and NSView + // Raising an Exception - Fixes #891347 + DIALOG_PCB_TEXT_PROPERTIES dlg( this, TextPCB, NULL ); +#endif dlg.ShowModal(); m_canvas->MoveCursorToCrossHair(); m_canvas->SetIgnoreMouseEvents( false );