From 9e510759b8d1d4ecee34f624e089e89efabd0208 Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Fri, 31 Jan 2025 09:14:42 +0100 Subject: [PATCH] FP_LIB_TABLE_ROW::LibraryExists(): ensure environment variables are expanded Fixes https://gitlab.com/kicad/code/kicad/-/issues/19800 --- common/fp_lib_table.cpp | 2 +- pcbnew/autorouter/spread_footprints.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fp_lib_table.cpp b/common/fp_lib_table.cpp index 64970f1f2c..8c7e0a1f98 100644 --- a/common/fp_lib_table.cpp +++ b/common/fp_lib_table.cpp @@ -66,7 +66,7 @@ void FP_LIB_TABLE_ROW::SetType( const wxString& aType ) bool FP_LIB_TABLE_ROW::LibraryExists() const { if( plugin ) - return plugin->CanReadLibrary( GetFullURI() ); + return plugin->CanReadLibrary( GetFullURI( true ) ); return false; } diff --git a/pcbnew/autorouter/spread_footprints.cpp b/pcbnew/autorouter/spread_footprints.cpp index d0fc484c29..c37f2cac6e 100644 --- a/pcbnew/autorouter/spread_footprints.cpp +++ b/pcbnew/autorouter/spread_footprints.cpp @@ -121,7 +121,7 @@ std::optional<rectpack2D::rect_wh> spreadRectangles( rect_vector& vecSubRects, i return result; } -#include <wx/log.h> + void SpreadFootprints( std::vector<FOOTPRINT*>* aFootprints, VECTOR2I aTargetBoxPosition, bool aGroupBySheet, int aComponentGap, int aGroupGap ) {