7
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:
Jeff Young 2025-03-21 13:44:41 +00:00
parent e6843cde64
commit 5e61a5193f

View File

@ -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();