Don't assume a string (KICAD-8QP).

This commit is contained in:
Jeff Young 2025-07-04 13:20:41 -06:00
parent e18b4cbf72
commit 82d4ab5094

View File

@ -433,7 +433,7 @@ wxString EnsureFileExtension( const wxString& aFilename, const wxString& aExtens
// extension, such as "Schematic_1.1".
if( newFilename.Lower().AfterLast( '.' ) != aExtension )
{
if( newFilename.Last() != '.' )
if( !newFilename.EndsWith( '.' ) )
newFilename.Append( '.' );
newFilename.Append( aExtension );