diff options
Diffstat (limited to 'Project/Constant.cpp')
-rw-r--r-- | Project/Constant.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Project/Constant.cpp b/Project/Constant.cpp index ff0ae02..f0c90fc 100644 --- a/Project/Constant.cpp +++ b/Project/Constant.cpp @@ -101,4 +101,13 @@ void Constant::SetValue(double value) m_height = m_glStringValue->getheight() + 6 + 2 * m_borderSize; UpdatePoints(); -}
\ No newline at end of file +} + +Element* Constant::GetCopy() +{ + Constant* copy = new Constant(m_elementID); + *copy = *this; + m_glStringValue = NULL; + SetValue(m_value); + return copy; +} |