Add missing GetEffectiveShape().
This commit is contained in:
parent
d1bddcf879
commit
31a26e7d25
|
@ -31,6 +31,7 @@
|
|||
#include <layers_id_colors_and_visibility.h>
|
||||
#include <settings/color_settings.h>
|
||||
#include <settings/settings_manager.h>
|
||||
#include <geometry/shape_null.h>
|
||||
#include <widgets/ui_common.h>
|
||||
#include <pgm_base.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
|
||||
{
|
||||
// m_rcItem->GetErrorMessage() could be used instead, but is probably too long
|
||||
|
|
|
@ -79,6 +79,8 @@ public:
|
|||
|
||||
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;
|
||||
|
||||
bool Matches( wxFindReplaceData& aSearchData, void* aAuxData ) override
|
||||
|
|
Loading…
Reference in New Issue