mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't assume a string (KICAD-8QP).
This commit is contained in:
parent
e18b4cbf72
commit
82d4ab5094
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user