Resolve fonts for tablecells.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20605
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user