From d62145fba9c35916631b3dc4b3acf510a380203c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 15 Oct 2018 20:53:53 +0100 Subject: [PATCH] Fix compile error when not on OSX. --- pcbnew/pcb_edit_frame.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 7da6645b22..0b6011ea69 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -1272,12 +1272,13 @@ void PCB_EDIT_FRAME::InstallFootprintPropertiesDialog( MODULE* Module, wxDC* DC dlg->Close(); dlg->Destroy(); -#ifdef __WXMAC__ - // If something edited, push a refresh request if( retvalue == DIALOG_FOOTPRINT_BOARD_EDITOR::PRM_EDITOR_EDIT_OK ) + { +#ifdef __WXMAC__ + // If something edited, push a refresh request m_canvas->Refresh(); #endif - + } else if( retvalue == DIALOG_FOOTPRINT_BOARD_EDITOR::PRM_EDITOR_EDIT_BOARD_FOOTPRINT ) { FOOTPRINT_EDIT_FRAME* editor = (FOOTPRINT_EDIT_FRAME*) Kiway().Player( FRAME_PCB_MODULE_EDITOR, true );