diff --git a/Code/Visualization/otbImageLayerGenerator.txx b/Code/Visualization/otbImageLayerGenerator.txx index b0461d50f05ba61ee6751cae472edcd486e19f4e..870b1b322134635ee359ae69406ced1c2ceae501 100644 --- a/Code/Visualization/otbImageLayerGenerator.txx +++ b/Code/Visualization/otbImageLayerGenerator.txx @@ -64,12 +64,8 @@ ImageLayerGenerator<TImageLayer> // Generate layer information this->GenerateLayerInformation(); - // If we need to generate the quicklook - if(m_GenerateQuicklook) - { - // Generate it - this->GenerateQuicklook(); - } + // Generate the quicklook + this->GenerateQuicklook(); } template < class TImageLayer >