]> Creatis software - clitk.git/blobdiff - vv/vvReadState.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvReadState.cxx
index 980bbf1ffeac7a832fc086265f68f14a05911dd0..6a248b2b82b23d456146fb79687c8212ddf1902b 100644 (file)
@@ -168,8 +168,12 @@ std::string vvReadState::ReadFusion(int index)
     if (m_XmlReader->isStartElement()) {
       if (value == "FileName") {
         file = m_XmlReader->readElementText().toStdString();
-        if (!m_XmlReader->hasError())
-          m_Window->AddFusionImage(index, file.c_str());
+        if (!m_XmlReader->hasError()) {
+          // TODO: manage sequence of images
+          std::vector<std::string> vec;
+          vec.push_back(file.c_str());
+          m_Window->AddFusionImage(index, vec, vvImageReader::IMAGE);
+        }
       }
       if (value == "FusionOpacity") {
         vali = m_XmlReader->readElementText().toInt();