From 68d0e4664a6670997c9aaef2e75c38614775c04f Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Mon, 30 Mar 2009 19:28:54 +0000 Subject: [PATCH] Mac fix --- pcbnew/editrack.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/editrack.cpp b/pcbnew/editrack.cpp index 3419cec253..7de68e0274 100644 --- a/pcbnew/editrack.cpp +++ b/pcbnew/editrack.cpp @@ -683,6 +683,10 @@ void ShowNewTrackWhenMovingCursor( WinEDA_DrawPanel* panel, wxDC* DC, bool erase ( (WinEDA_BasePcbFrame*) (panel->m_Parent) )->trace_ratsnest_pad( DC ); } + // MacOSX seems to need this. + if( g_CurrentTrackList.GetCount() == 0 ) + return; + /* dessin de la nouvelle piste : mise a jour du point d'arrivee */ g_CurrentTrackSegment->SetLayer( screen->m_Active_Layer ); if( ! g_DesignSettings.m_UseConnectedTrackWidth )