From 31a26e7d2580c3874aa96dcf032358aada04c42a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 24 Nov 2020 22:16:27 +0000 Subject: [PATCH] Add missing GetEffectiveShape(). --- pcbnew/pcb_marker.cpp | 9 +++++++++ pcbnew/pcb_marker.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/pcbnew/pcb_marker.cpp b/pcbnew/pcb_marker.cpp index 2c99d33434..8eae9302f9 100644 --- a/pcbnew/pcb_marker.cpp +++ b/pcbnew/pcb_marker.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -128,6 +129,14 @@ void PCB_MARKER::Flip( const wxPoint& aCentre, bool aFlipLeftRight ) } +std::shared_ptr PCB_MARKER::GetEffectiveShape( PCB_LAYER_ID aLayer ) const +{ + // Markers do not participate in the board geometry space, and therefore have no + // effectiven shape. + return std::make_shared(); +} + + wxString PCB_MARKER::GetSelectMenuText( EDA_UNITS aUnits ) const { // m_rcItem->GetErrorMessage() could be used instead, but is probably too long diff --git a/pcbnew/pcb_marker.h b/pcbnew/pcb_marker.h index 347c99d97b..204be2174d 100644 --- a/pcbnew/pcb_marker.h +++ b/pcbnew/pcb_marker.h @@ -79,6 +79,8 @@ public: GAL_LAYER_ID GetColorLayer() const; + std::shared_ptr GetEffectiveShape( PCB_LAYER_ID aLayer ) const override; + void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector& aList ) override; bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override