Skip to content
Snippets Groups Projects
Commit 56ead2e5 authored by Julien Michel's avatar Julien Michel
Browse files

Merge branch '1758-missuse-of-bool-param' into 'develop'

Resolve "Orthorectification regression in v6.6"

Closes #1758

See merge request orfeotoolbox/otb!277
parents dccfd1e8 1e49a57c
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,7 @@ private:
}
DisableParameter("mode.raster.out");
if( IsParameterEnabled( "cleanup" ) )
if( GetParameterInt( "cleanup" ) )
{
otbAppLogINFO( <<"Final clean-up ..." );
for (unsigned int i=0 ; i<tmpFilenames.size() ; ++i)
......
......@@ -142,7 +142,7 @@ const std::string MapProjectionParametersHandler::GetProjectionRefFromChoice(con
// Set the hem
char hem = 'N';
if (!app->IsParameterEnabled(hemKey.str()))
if (!app->GetParameterInt(hemKey.str()))
hem = 'S';
utmProjection->SetHemisphere(hem);
......@@ -241,15 +241,7 @@ void MapProjectionParametersHandler::InitializeUTMParameters(Application::Pointe
genericRSEstimator->GetOutputOrigin()[1]);
// Update the UTM Gui fields
app->SetParameterInt(zoneKey.str(), zone);
if (genericRSEstimator->GetOutputOrigin()[1] > 0.)
{
app->EnableParameter(hemKey.str());
}
else
{
app->DisableParameter(hemKey.str());
}
app->SetParameterInt(hemKey.str(),genericRSEstimator->GetOutputOrigin()[1] > 0.);
app->AutomaticValueOn(zoneKey.str());
app->AutomaticValueOn(hemKey.str());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment