diff --git a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp index b5a718b5f9c0352f23edec21b1f499000eb52684..820f479825acad159c33a704a70f14037f251a2e 100644 --- a/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp +++ b/Modules/ThirdParty/OssimPlugins/src/ossim/ossimCosmoSkymedModel.cpp @@ -268,10 +268,10 @@ namespace ossimplugins } } - int nbRasterCout = dataset->GetRasterCount(); + int nbRasterCount = dataset->GetRasterCount(); // Metadata for each Band - for (int iBand = 0; iBand < dataset->GetRasterCount(); iBand++) + for (int iBand = 0; iBand < nbRasterCount; iBand++) { std::map<std::string, std::string> mapCurrentBand;