Pcbnew: Enable SVG import in DIALOG_IMPORT_GFX.

This commit is contained in:
jean-pierre charras 2019-03-11 18:30:59 +01:00
parent d259459a14
commit 61567d3917
2 changed files with 3 additions and 4 deletions

View File

@ -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<GRAPHICS_IMPORT_MGR>( blacklist );
}

View File

@ -3,6 +3,7 @@
*
* Copyright (C) 2016 CERN
* @author Maciej Suminski <maciej.suminski@cern.ch>
* 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