mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
IO_BASE: don't try to modify the case of a temporary string in-place, work on a copy
(cherry picked from commit 6a0efe6883b8032bdde6231efae9689df5532564) Fixes https://gitlab.com/kicad/code/kicad/-/issues/20228
This commit is contained in:
parent
46ef12ff4d
commit
648c3aec39
@ -76,7 +76,7 @@ bool IO_BASE::CanReadLibrary( const wxString& aFileName ) const
|
||||
{
|
||||
const std::vector<std::string>& exts = desc.m_FileExtensions;
|
||||
|
||||
wxString fileExt = wxFileName( aFileName ).GetExt().MakeLower();
|
||||
wxString fileExt = wxFileName( aFileName ).GetExt().Lower();
|
||||
|
||||
for( const std::string& ext : exts )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user