Skip to content

Commit

Permalink
Fix querying of GDAL_DMD_PLUGIN_INSTALLATION_MESSAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 10, 2024
1 parent 895e9fb commit 87b8a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcore/gdaldrivermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,7 @@ static const char *const apszProxyMetadataItems[] = {
GDAL_DCAP_NONSPATIAL,
GDAL_DMD_CONNECTION_PREFIX,
GDAL_DCAP_VECTOR_TRANSLATE_FROM,
GDAL_DMD_PLUGIN_INSTALLATION_MESSAGE,
};

const char *GDALPluginDriverProxy::GetMetadataItem(const char *pszName,
Expand Down Expand Up @@ -1331,8 +1332,7 @@ const char *GDALPluginDriverProxy::GetMetadataItem(const char *pszName,
}
return pszValue;
}
else if (!EQUAL(pszName, GDAL_DMD_PLUGIN_INSTALLATION_MESSAGE) &&
m_oSetMetadataItems.find(pszName) != m_oSetMetadataItems.end())
else if (m_oSetMetadataItems.find(pszName) != m_oSetMetadataItems.end())
{
return GDALDriver::GetMetadataItem(pszName, pszDomain);
}
Expand Down

0 comments on commit 87b8a1c

Please sign in to comment.