← Back to team overview

kicad-developers team mailing list archive

[PATCH] Remove assert in pcbnew on osx with a debug build

 

---
 common/draw_panel_gal.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp
index fd48d83..2616490 100644
--- a/common/draw_panel_gal.cpp
+++ b/common/draw_panel_gal.cpp
@@ -156,7 +156,9 @@ void EDA_DRAW_PANEL_GAL::SetFocus()
 void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) )
 {
     // This is required even though dc is not used otherwise.
+#ifndef __WXMAC__
     wxPaintDC dc(this);
+#endif
 
     m_pendingRefresh = false;
 

Follow ups

References