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

  Switch to side-by-side view

--- a/src/lib/simulator/src/electronics/components/capacitor.cpp
+++ b/src/lib/simulator/src/electronics/components/capacitor.cpp
@@ -52,7 +52,7 @@
         return;
     }
     Q_UNUSED(oldValue);
-    double capacitance = newValue.asDouble();
+    double capacitance = newValue.toDouble();
     m_capacitance->setCapacitance(capacitance);
     // reset the charge on the capacitance
     m_capacitance->add_initial_dc();