Commit 21623b40 authored by Stéphane Albert's avatar Stéphane Albert

BUG: MANTIS-1154: Fixed LUMImageIO::GetOverviewsCount().

parent e93ad46e
......@@ -102,7 +102,9 @@ public:
* This imageIO didn't support overviews */
virtual unsigned int GetOverviewsCount()
{
return 0;
// MANTIS-1154: Source image is always considered as the best
// resolution overview.
return 1;
}
/** Get information about overviews available into the file specified
......
......@@ -154,6 +154,8 @@ void GlImageActor::Initialize(const std::string & filename)
unsigned int ovrCount = m_FileReader->GetOverviewsCount();
assert( ovrCount>0 );
m_AvailableResolutions.clear();
for( unsigned int i=0; i<ovrCount; ++i )
......
Markdown is supported
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