From f637a820b68c1084451267ca64e491656678e134 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sun, 14 Aug 2022 21:13:27 +0100 Subject: [PATCH] cadstar: Report warning that imported text may be different Fixes https://gitlab.com/kicad/code/kicad/-/issues/12195 (cherry picked from commit 69d696660b05e7d77adf085e2dbf045c7542e65c) --- eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp | 5 +++++ pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp index 2cc821ef46..bc816fb055 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp @@ -255,6 +255,11 @@ void CADSTAR_SCH_ARCHIVE_LOADER::Load( SCHEMATIC* aSchematic, SCH_SHEET* aRootSh checkPoint(); + m_reporter->Report( _( "CADSTAR fonts are different to the ones in KiCad. This will likely " + "result in alignment issues. Please review the imported text elements " + "carefully and correct manually if required." ), + RPT_SEVERITY_WARNING ); + m_reporter->Report( _( "The CADSTAR design has been imported successfully.\n" "Please review the import errors and warnings (if any)." ) ); } diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp index 31e59816de..70614f1280 100644 --- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp +++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp @@ -161,6 +161,10 @@ void CADSTAR_PCB_ARCHIVE_LOADER::Load( BOARD* aBoard, PROJECT* aProject ) "re-use block information has been discarded during the import." ) ); } + wxLogWarning( _( "CADSTAR fonts are different to the ones in KiCad. This will likely result " + "in alignment issues that may cause DRC errors. Please review the imported " + "text elements carefully and correct manually if required." ) ); + wxLogMessage( _( "The CADSTAR design has been imported successfully.\n" "Please review the import errors and warnings (if any)." ) );