Commit 3dbfec54 authored by Victor Poughon's avatar Victor Poughon
Browse files

ImageFileReader: Fix misleading error handling for directories

GetGdalReadImageFileName does not set its second argument when its first
argument is a non empty directory and not a supported format (OTB
supports opening directories in some cases). But in that case it does
return false, which was not handled before this commit. This resulted in
a misleading error message and a corrupted m_FileName.
parent 8d4dfaee
No related merge requests found
Showing with 6 additions and 10 deletions
+6 -10
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