Commit 3d13aecd authored by Julien Michel's avatar Julien Michel

ENH: Ensure that geom file is not read in EnsureValidImage method

parent f33c4d85
......@@ -172,8 +172,10 @@ VectorImageModel
DefaultImageFileReaderType::New()
);
imageFileReader->SetFileName( QFile::encodeName( filename ).constData() );
imageFileReader->UpdateOutputInformation();
QString fname = filename;
imageFileReader->SetFileName( QFile::encodeName( fname.append(QString("?&skipgeom=true"))).constData());
imageFileReader->GetOutput()->UpdateOutputInformation();
}
catch( std::exception& exc )
......
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