diff options
Diffstat (limited to 'Project/ConnectionLine.cpp')
-rw-r--r-- | Project/ConnectionLine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/ConnectionLine.cpp b/Project/ConnectionLine.cpp index ea04e5e..0258f2e 100644 --- a/Project/ConnectionLine.cpp +++ b/Project/ConnectionLine.cpp @@ -184,3 +184,10 @@ void ConnectionLine::RemoveParent(Element* parent) if(element == parent) m_parentList.erase(it--); } } + +Element* ConnectionLine::GetCopy() +{ + ConnectionLine* copy = new ConnectionLine(); + *copy = *this; + return copy; +} |