Commit 7819e870 authored by Kristin Berry's avatar Kristin Berry
Browse files

Moved code for m_vertexMap into the actual swap function

parent 0d2f236d
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -1841,6 +1841,15 @@ namespace Isis {
    while (i2.hasNext()) {
      i2.next().value()->parentNetwork = &other;
    }

    m_vertexMap.clear();
    VertexIterator v, vend;
    for (boost::tie(v, vend) = vertices(m_controlGraph); v != vend; ++v) {
      ImageVertex imVertex = *v;
      QString serialNum = m_controlGraph[*v].serial;
      m_vertexMap[serialNum] = imVertex;
    }

    emit networkModified(ControlNet::Swapped);
  }

@@ -1860,14 +1869,6 @@ namespace Isis {
      swap(copy);
    }

    m_vertexMap.clear();
    VertexIterator v, vend;
    for (boost::tie(v, vend) = vertices(m_controlGraph); v != vend; ++v) {
      ImageVertex imVertex = *v;
      QString serialNum = m_controlGraph[*v].serial;
      m_vertexMap[serialNum] = imVertex;
    }

    return *this;
  }