diff --git a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc index 7e4a009..8ef9b9c 100644 --- a/src/ParamOutputImpl/Plot/PanelPlotOutput.cc +++ b/src/ParamOutputImpl/Plot/PanelPlotOutput.cc @@ -2109,13 +2109,12 @@ void PanelPlotOutput::writeContext(ContextFileWriter &writer, AMDA::Parameters:: { TimeTableCatalog::Catalog inputTTOrCat; inputTTOrCat.read(ttOrCatPath, lReaderType); - writer.startElement("intervals"); for (std::vector::const_iterator it = inputTTOrCat.getIntervals().begin(); it != inputTTOrCat.getIntervals().end(); ++it) { if (it->_startTime >= currentTimeInterval->_startTime && it->_stopTime <= currentTimeInterval->_stopTime) // inside the interval { - writer.startElement("interval"); + writer.startElement("intervals"); writer.addAttribute("name", inputTTOrCat._name.c_str()); writer.addAttribute("id", std::to_string(it->_index).c_str()); writer.addAttribute("startTime", std::to_string(it->_startTime).c_str()); @@ -2124,7 +2123,7 @@ void PanelPlotOutput::writeContext(ContextFileWriter &writer, AMDA::Parameters:: } else if (it->_startTime <= currentTimeInterval->_startTime && it->_stopTime <= currentTimeInterval->_stopTime && it->_stopTime >= currentTimeInterval->_startTime) // begins before, ends inside { - writer.startElement("interval"); + writer.startElement("intervals"); writer.addAttribute("name", inputTTOrCat._name.c_str()); writer.addAttribute("id", std::to_string(it->_index).c_str()); writer.addAttribute("startTime", std::to_string(currentTimeInterval->_startTime).c_str()); @@ -2133,7 +2132,7 @@ void PanelPlotOutput::writeContext(ContextFileWriter &writer, AMDA::Parameters:: } else if (it->_startTime >= currentTimeInterval->_startTime && it->_startTime <= currentTimeInterval->_stopTime && it->_stopTime >= currentTimeInterval->_stopTime) // begins inside, ends after { - writer.startElement("interval"); + writer.startElement("intervals"); writer.addAttribute("name", inputTTOrCat._name.c_str()); writer.addAttribute("id", std::to_string(it->_index).c_str()); writer.addAttribute("startTime", std::to_string(it->_startTime).c_str()); @@ -2141,7 +2140,6 @@ void PanelPlotOutput::writeContext(ContextFileWriter &writer, AMDA::Parameters:: writer.endElement(); } } - writer.endElement(); } } } -- libgit2 0.21.2