summaryrefslogtreecommitdiffstats
path: root/Project/IOControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/IOControl.cpp')
-rw-r--r--Project/IOControl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Project/IOControl.cpp b/Project/IOControl.cpp
index d9ea52e..2eab8de 100644
--- a/Project/IOControl.cpp
+++ b/Project/IOControl.cpp
@@ -222,3 +222,12 @@ void IOControl::UpdatePoints()
}
}
}
+
+Element* IOControl::GetCopy()
+{
+ IOControl* copy = new IOControl(m_ioFlags, m_elementID);
+ *copy = *this;
+ m_glStringValue = NULL;
+ SetValue(m_value);
+ return copy;
+}