Commit 0cb1b3b9 authored by Tracie Sucharski's avatar Tracie Sucharski
Browse files

Fix bug reading imported shapes from a saved project which caused all shapes...

Fix bug reading imported shapes from a saved project which caused all shapes to be put on project tree under the last import node on the tree.  Fixes #5274.
parent b570de8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2855,7 +2855,7 @@ namespace Isis {
      else if (localName == "imageList") {
        m_imageLists.append(new ImageList(m_project, reader()));
      }
      else if (localName == "shapeLists") {
      else if (localName == "shapeList") {
        m_shapeLists.append(new ShapeList(m_project, reader()));
      }
      else if (localName == "templateList") {
+3 −0
Original line number Diff line number Diff line
@@ -250,6 +250,9 @@ namespace Isis {
   *                           to the new project, so this had to be done in
   *                           Control::copyToNewProjectRoot.  If simply saving current projct,
   *                           the write is done here in the save method.
   *  @history 2018-04-25 Tracie Sucharski - Fixed typo in XmlHandler::startElement reading
   *                           imported shapes from a project which caused the shapes to be put in
   *                           the wrong place on the project tree. Fixes #5274.
   *  
   */
  class Project : public QObject {