Skip to content

Commit

Permalink
BUG: Ensure that DERIVED mdd is not reported twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichel-otb committed Jul 8, 2016
1 parent d96cf59 commit f6aaf6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gdal/gcore/gdaldataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3344,7 +3344,12 @@ char ** GDALDataset::GetMetadata(const char * pszDomain)
char ** GDALDataset::GetMetadataDomainList()
{
char ** currentDomainList = CSLDuplicate(oMDMD.GetDomainList());
currentDomainList = CSLAddString(currentDomainList,"DERIVED_SUBDATASETS");

// Ensure that we do not duplicate DERIVED domain
if(CSLFindString(currentDomainList,"DERIVED_SUBDATASETS")==-1)
{
currentDomainList = CSLAddString(currentDomainList,"DERIVED_SUBDATASETS");
}
return currentDomainList;
}

Expand Down

0 comments on commit f6aaf6d

Please sign in to comment.