API: Serialize PCB_TEXTBOX

This commit is contained in:
Jon Evans
2024-11-24 17:25:56 -05:00
parent c0d43c0c0c
commit d64b17050d
3 changed files with 109 additions and 1 deletions
+3 -1
View File
@@ -424,13 +424,15 @@ HANDLER_RESULT<GetItemsResponse> API_HANDLER_PCB::handleGetItems( GetItems& aMsg
}
case PCB_SHAPE_T:
case PCB_TEXT_T:
case PCB_TEXTBOX_T:
{
handledAnything = true;
bool inserted = false;
for( BOARD_ITEM* item : board->Drawings() )
{
if( item->Type() == PCB_SHAPE_T )
if( item->Type() == type )
{
items.emplace_back( item );
inserted = true;