diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-16 19:07:49 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-16 19:07:49 -0300 |
commit | 1158ce068e3b5b391604270bf10c52d0d2f7f4db (patch) | |
tree | 7e9b770ede3c0592f631b9e6982be55d2173ea04 /Project/Constant.cpp | |
parent | c6c3ff70bfceac839af471c11fc8aa04060517b0 (diff) | |
download | PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.gz PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.xz PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.zip |
Sync generator control fixed
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; +} |