mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 21:11:43 +00:00
Fix misleading cast.
This commit is contained in:
parent
e6843cde64
commit
5e61a5193f
@ -396,7 +396,7 @@ COLOR4D SCH_PAINTER::getRenderColor( const SCH_ITEM* aItem, int aLayer, bool aDr
|
||||
}
|
||||
else if( aItem->Type() == SCH_TEXTBOX_T || aItem->Type() == SCH_TABLECELL_T )
|
||||
{
|
||||
const SCH_TEXTBOX* textBox = dynamic_cast<const SCH_TEXTBOX*>( aItem );
|
||||
const SCH_TEXTBOX* textBox = static_cast<const SCH_TEXTBOX*>( aItem );
|
||||
|
||||
if( isBackgroundLayer( aLayer ) )
|
||||
color = textBox->GetFillColor();
|
||||
|
Loading…
Reference in New Issue
Block a user