Skip to content

Commit 3d620ed

Browse files
gbburkhardtwcmatthysen
authored andcommitted
correct test for DTED extension; files can use either upper or lower case for file extension
1 parent 452d14c commit 3d620ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gov/nasa/worldwindx/examples/dataimport/InstallDTED.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ protected void findDTEDFiles(File directory, ArrayList<File> files)
148148
{
149149
this.findDTEDFiles(file, files);
150150
}
151-
else if (file.getName().endsWith("dt0")
152-
|| file.getName().endsWith("dt1")
153-
|| file.getName().endsWith("dt2"))
151+
else if (file.getName().toLowerCase().endsWith("dt0")
152+
|| file.getName().toLowerCase().endsWith("dt1")
153+
|| file.getName().toLowerCase().endsWith("dt2"))
154154
{
155155
files.add(file);
156156
}

0 commit comments

Comments
 (0)