Resolve fonts for tablecells.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20605
This commit is contained in:
Jeff Young
2025-04-10 14:10:16 +01:00
parent 3068868f65
commit 9b253fbdd7
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -225,6 +225,17 @@ void PCB_TABLE::RunOnChildren( const std::function<void( BOARD_ITEM* )>& aFuncti
}
void PCB_TABLE::RunOnDescendants( const std::function<void( BOARD_ITEM* )>& aFunction, int aDepth ) const
{
for( PCB_TABLECELL* cell : m_cells )
{
aFunction( cell );
cell->RunOnDescendants( aFunction, aDepth + 1 );
}
}
const BOX2I PCB_TABLE::GetBoundingBox() const
{
// Note: a table with no cells is not allowed
+1
View File
@@ -98,6 +98,7 @@ public:
bool StrokeRows() const { return m_strokeRows; }
void RunOnChildren( const std::function<void( BOARD_ITEM* )>& aFunction ) const override;
void RunOnDescendants( const std::function<void( BOARD_ITEM* )>& aFunction, int aDepth = 0 ) const override;
void SetPosition( const VECTOR2I& aPos ) override;
VECTOR2I GetPosition() const override;