This commit is contained in:
artemp 2016-06-22 17:25:37 +01:00
parent 2e8c0d36c2
commit 7de7464caf

View file

@ -213,8 +213,7 @@ tiff_reader<T>::tiff_reader(std::string const& filename)
is_tiled_(false) is_tiled_(false)
{ {
source_.open(filename, std::ios_base::in | std::ios_base::binary); source_.open(filename, std::ios_base::in | std::ios_base::binary);
if (!source_.is_open()) throw image_reader_exception("TIFF reader: cannot open file "+ filename); if (!stream_) throw image_reader_exception("TIFF reader: cannot open file "+ filename);
if (!stream_) throw image_reader_exception("TIFF reader: cannot open file "+ filename);
init(); init();
} }