From 093232103f94c1b3148b948d0d152efc12c8fe7d Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 18 May 2015 08:23:41 +0200 Subject: [PATCH] Eeschema: fix wxassert failure on schematic plot with ERC markers --- eeschema/sch_marker.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eeschema/sch_marker.h b/eeschema/sch_marker.h index 343ff6b290..0df849423d 100644 --- a/eeschema/sch_marker.h +++ b/eeschema/sch_marker.h @@ -70,6 +70,14 @@ public: void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset, GR_DRAWMODE aDraw_mode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ); + void Plot( PLOTTER* aPlotter ) + { + // SCH_MARKERs should not be plotted. However, SCH_ITEM will fail an + // assertion if we do not confirm this by locally implementing a no-op + // Plot(). + (void) aPlotter; + } + bool Save( FILE* aFile ) const; EDA_RECT const GetBoundingBox() const; // Virtual