Eeschema: fix sheet file name case sensitivity test.
Fix overzealous test if the new file name is the same as an existing
file name.
Fix a potential comparison bug due to missing file extension.
(cherry picked from commit b66ecf141f
)
This commit is contained in:
parent
be12aece5b
commit
7f1c7d808d
|
@ -1635,10 +1635,10 @@ bool SCH_SCREENS::CanCauseCaseSensitivityIssue( const wxString& aSchematicFileNa
|
||||||
if( lhs.GetPath() != rhs.GetPath() )
|
if( lhs.GetPath() != rhs.GetPath() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
lhsLower = lhs.GetName().Lower();
|
lhsLower = lhs.GetFullName().Lower();
|
||||||
rhsLower = rhs.GetName().Lower();
|
rhsLower = rhs.GetFullName().Lower();
|
||||||
|
|
||||||
if( lhsLower == rhsLower )
|
if( lhsLower == rhsLower && lhs.GetFullName() != rhs.GetFullName() )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue