diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp index 7b49c5bff9..d6650cc7ae 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp @@ -173,6 +173,16 @@ void CADSTAR_SCH_ARCHIVE_LOADER::Load( SCHEMATIC* aSchematic, SCH_SHEET* aRootSh bbox.Merge( field.GetBoundingBox() ); } } + else if( item->Type() == SCH_TEXT_T ) + { + SCH_TEXT* txtItem = static_cast( item ); + wxString txt = txtItem->GetText(); + + if( txt.Contains( "${" ) ) + continue; // We can't calculate bounding box of text items with variables + else + bbox = txtItem->GetBoundingBox(); + } else { bbox = item->GetBoundingBox();