From 1158ce068e3b5b391604270bf10c52d0d2f7f4db Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 16 May 2017 19:07:49 -0300 Subject: Sync generator control fixed --- Project/Constant.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Project/Constant.cpp') 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; +} -- cgit