From bb68dad77cf0d5cdf06b95b4d74d102e82d087ce Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 19 Oct 2017 11:43:54 +0200 Subject: [PATCH] GenCAD exporter: clear shape name maps when export is finished Otherwise the maps could contain stale data leading to a crash --- pcbnew/exporters/export_gencad.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/exporters/export_gencad.cpp b/pcbnew/exporters/export_gencad.cpp index b7bd52175d..aad36fd4c8 100644 --- a/pcbnew/exporters/export_gencad.cpp +++ b/pcbnew/exporters/export_gencad.cpp @@ -352,6 +352,9 @@ void PCB_EDIT_FRAME::ExportToGenCAD( wxCommandEvent& aEvent ) module->SetFlag( 0 ); } } + + componentShapes.clear(); + shapeNames.clear(); }