Skip to content

Commit dd7fc58

Browse files
authored
Merge pull request #18 from WorldWindEarth/DTED-file-extension-fix
Correct test for DTED file extension
2 parents 452d14c + 3d620ed commit dd7fc58

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)