Skip to content

Commit 2229111

Browse files
authored
Merge pull request OSGeo#13087 from AbelPau/MiraMonRaster-logarithmic-palette
MiraMonRaster: searching NomFitxer in the appropiate place
2 parents b1958fa + b218a91 commit 2229111

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frmts/miramon/miramon_band.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ MMRBand::MMRBand(MMRRel &fRel, const CPLString &osBandSectionIn)
2828

2929
{
3030
// Getting band and band file name from metadata.
31-
if (!m_pfRel->GetMetadataValue(SECTION_ATTRIBUTE_DATA, osBandSectionIn,
32-
KEY_NomFitxer, m_osRawBandFileName) ||
31+
CPLString osNomFitxer;
32+
osNomFitxer = SECTION_ATTRIBUTE_DATA;
33+
osNomFitxer.append(":");
34+
osNomFitxer.append(osBandSectionIn);
35+
if (!m_pfRel->GetMetadataValue(osNomFitxer, KEY_NomFitxer,
36+
m_osRawBandFileName) ||
3337
m_osRawBandFileName.empty())
3438
{
3539
// A band name may be empty only if it is the only band present

0 commit comments

Comments
 (0)