From 61567d3917255360ffbfefdcee8cf60cd8fc2ac0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 11 Mar 2019 18:30:59 +0100 Subject: [PATCH] Pcbnew: Enable SVG import in DIALOG_IMPORT_GFX. --- pcbnew/import_gfx/dialog_import_gfx.cpp | 6 ++---- pcbnew/import_gfx/graphics_import_mgr.h | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pcbnew/import_gfx/dialog_import_gfx.cpp b/pcbnew/import_gfx/dialog_import_gfx.cpp index ce4d881b68..f0b661c6e4 100644 --- a/pcbnew/import_gfx/dialog_import_gfx.cpp +++ b/pcbnew/import_gfx/dialog_import_gfx.cpp @@ -71,10 +71,8 @@ DIALOG_IMPORT_GFX::DIALOG_IMPORT_GFX( PCB_BASE_FRAME* aParent, bool aImportAsFoo // construct an import manager with options from config { GRAPHICS_IMPORT_MGR::TYPE_LIST blacklist; - - if( !ADVANCED_CFG::GetCfg().m_enableSvgImport ) - blacklist.push_back( GRAPHICS_IMPORT_MGR::SVG ); - + // Currently: all types are allowed, so the blacklist is empty + // (no GFX_FILE_T in the blacklist) m_gfxImportMgr = std::make_unique( blacklist ); } diff --git a/pcbnew/import_gfx/graphics_import_mgr.h b/pcbnew/import_gfx/graphics_import_mgr.h index d478c236be..4100fb9d4f 100644 --- a/pcbnew/import_gfx/graphics_import_mgr.h +++ b/pcbnew/import_gfx/graphics_import_mgr.h @@ -3,6 +3,7 @@ * * Copyright (C) 2016 CERN * @author Maciej Suminski + * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License