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/Gain.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Project/Gain.cpp') diff --git a/Project/Gain.cpp b/Project/Gain.cpp index d2106d7..d6dc7a2 100644 --- a/Project/Gain.cpp +++ b/Project/Gain.cpp @@ -173,3 +173,12 @@ bool Gain::Solve(double input, double timeStep) m_output = input * m_value; return true; } + +Element* Gain::GetCopy() +{ + Gain* copy = new Gain(m_elementID); + *copy = *this; + m_glStringValue = NULL; + SetValue(m_value); + return copy; +} -- cgit