Diff of /src/lib/simulator/src/electronics/components/eccurrentsignal.cpp [9e3b00] .. [812dd5] Maximize Restore

  Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/eccurrentsignal.cpp
+++ b/src/lib/simulator/src/electronics/components/eccurrentsignal.cpp
@@ -64,11 +64,11 @@
     Q_UNUSED(oldValue);
 
     if(theProperty.name() == "1-current"){
-        double frequency = newValue.asDouble();
+        double frequency = newValue.toDouble();
         m_currentSignal->setStep(ElementSignal::st_sinusoidal, frequency );
     } else
     if(theProperty.name() == "1-frequency"){
-        double current = newValue.asDouble();
+        double current = newValue.toDouble();
         m_currentSignal->setCurrent(current);
     } else {
         qCritical() << "ECCurrentSignal: inexistent property with the name "