Add missing GetEffectiveShape().

This commit is contained in:
Jeff Young 2020-11-24 22:16:27 +00:00
parent d1bddcf879
commit 31a26e7d25
2 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include <layers_id_colors_and_visibility.h> #include <layers_id_colors_and_visibility.h>
#include <settings/color_settings.h> #include <settings/color_settings.h>
#include <settings/settings_manager.h> #include <settings/settings_manager.h>
#include <geometry/shape_null.h>
#include <widgets/ui_common.h> #include <widgets/ui_common.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <drc/drc_item.h> #include <drc/drc_item.h>
@ -128,6 +129,14 @@ void PCB_MARKER::Flip( const wxPoint& aCentre, bool aFlipLeftRight )
} }
std::shared_ptr<SHAPE> 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<SHAPE_NULL>();
}
wxString PCB_MARKER::GetSelectMenuText( EDA_UNITS aUnits ) const wxString PCB_MARKER::GetSelectMenuText( EDA_UNITS aUnits ) const
{ {
// m_rcItem->GetErrorMessage() could be used instead, but is probably too long // m_rcItem->GetErrorMessage() could be used instead, but is probably too long

View File

@ -79,6 +79,8 @@ public:
GAL_LAYER_ID GetColorLayer() const; GAL_LAYER_ID GetColorLayer() const;
std::shared_ptr<SHAPE> GetEffectiveShape( PCB_LAYER_ID aLayer ) const override;
void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override; void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override