Skip to content

Commit

Permalink
frmDownload.vb -- small change for compatibility with DotSpatial Grids
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDudaRESPEC committed Sep 6, 2024
1 parent 2e5b937 commit ec06fd5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions D4EMDownloadData/frmDownload.vb
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,12 @@ Public Class frmDownload
Dim lFilename As String = ""
Dim lSelectedCount As Integer = 0
If lLayer IsNot Nothing Then
lFilename = IO.Path.GetFileNameWithoutExtension(lLayer.DataSet.Filename).ToLower
lSelectedCount = CType(lLayer, IMapFeatureLayer).Selection().Count
If lLayer.GetType.Name = "MapRasterLayer" Then
lFilename = ""
Else
lFilename = IO.Path.GetFileNameWithoutExtension(lLayer.DataSet.Filename).ToLower
lSelectedCount = CType(lLayer, IMapFeatureLayer).Selection().Count
End If
Else
lFilename = ""
End If
Expand Down

0 comments on commit ec06fd5

Please sign in to comment.