Commit f862e904 authored by Victor Poughon's avatar Victor Poughon

BUG: fix auto replace error on ImageSeriesFileReaderBase

parent f70f0777
......@@ -43,7 +43,13 @@ void
ImageSeriesFileReaderBase<TImage, TInternalImage>
::SetFileName(const std::string& file)
{
return SetFileName(file);
if (file == m_FileName) return;
this->m_FileName = file;
ReadMetaFile();
AllocateListOfComponents();
this->Modified();
}
template <class TImage, class TInternalImage>
......@@ -51,17 +57,10 @@ void
ImageSeriesFileReaderBase<TImage, TInternalImage>
::SetFileName(const char * file)
{
if (file && (file == m_FileName)) return;
if (file)
{
this->m_FileName = file;
ReadMetaFile();
AllocateListOfComponents();
}
else this->m_FileName = "";
this->Modified();
{
this->SetFileName(std::string(file));
}
}
template <class TImage, class TInternalImage>
......
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