Implement SCH_MARKER::GetSeverity().
Fixes https://gitlab.com/kicad/code/kicad/issues/10893
This commit is contained in:
parent
5efa354f0f
commit
a678b78091
|
@ -156,6 +156,17 @@ KIGFX::COLOR4D SCH_MARKER::getColor() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SEVERITY SCH_MARKER::GetSeverity() const
|
||||||
|
{
|
||||||
|
if( IsExcluded() )
|
||||||
|
return RPT_SEVERITY_EXCLUSION;
|
||||||
|
|
||||||
|
ERC_ITEM* item = static_cast<ERC_ITEM*>( m_rcItem.get() );
|
||||||
|
|
||||||
|
return Schematic()->ErcSettings().GetSeverity( item->GetErrorCode() );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SCH_MARKER::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset )
|
void SCH_MARKER::Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset )
|
||||||
{
|
{
|
||||||
PrintMarker( aSettings, aOffset );
|
PrintMarker( aSettings, aOffset );
|
||||||
|
|
|
@ -60,6 +60,8 @@ public:
|
||||||
|
|
||||||
SCH_LAYER_ID GetColorLayer() const;
|
SCH_LAYER_ID GetColorLayer() const;
|
||||||
|
|
||||||
|
SEVERITY GetSeverity() const override;
|
||||||
|
|
||||||
void Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset ) override;
|
void Print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffset ) override;
|
||||||
|
|
||||||
void Plot( PLOTTER* /* aPlotter */, bool /* aBackground */ ) const override
|
void Plot( PLOTTER* /* aPlotter */, bool /* aBackground */ ) const override
|
||||||
|
|
Loading…
Reference in New Issue