diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index 46f1f76cb3..e97b45e1ab 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -1371,10 +1371,10 @@ bool SCH_SCREENS::CanCauseCaseSensitivityIssue( const wxString& aSchematicFileNa if( lhs.GetPath() != rhs.GetPath() ) continue; - lhsLower = lhs.GetName().Lower(); - rhsLower = rhs.GetName().Lower(); + lhsLower = lhs.GetFullName().Lower(); + rhsLower = rhs.GetFullName().Lower(); - if( lhsLower == rhsLower ) + if( lhsLower == rhsLower && lhs.GetFullName() != rhs.GetFullName() ) return true; }