Commit 4adc14f0 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Fixed initialization of otb::GlImageActor::m_AvailableResolutions...

ENH: Fixed initialization of otb::GlImageActor::m_AvailableResolutions including one level in excess and causing otb::JPEG2000ImageIO::ReadImageInfo() to throw exception "Cannot open this file with this resolution!"
parent 833cd13a
......@@ -144,12 +144,8 @@ void GlImageActor::Initialize(const std::string & filename)
m_AvailableResolutions.clear();
m_AvailableResolutions.push_back(0);
for(unsigned int i =0; i < ovrCount;++i)
{
m_AvailableResolutions.push_back(i+1);
}
for( unsigned int i=0; i<ovrCount; ++i )
m_AvailableResolutions.push_back( i );
m_CurrentResolution = m_AvailableResolutions.front();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment