From b66ecf141f393a9fc10b0a97676837385fd05939 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 12 Dec 2019 12:30:35 -0500 Subject: [PATCH] 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. --- eeschema/sch_screen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }