diff --git a/componant.cpp b/componant.cpp index c0542bad0d53cf79f3bd395e19720af5c2219dca..7ea0e0b4bdb848499f95013cba84e35ba96921bf 100644 --- a/componant.cpp +++ b/componant.cpp @@ -6,6 +6,7 @@ #include "constantphase.h" #include "warburg.h" #include "log.h" +#include "inductor.h" using namespace eis; @@ -17,6 +18,8 @@ Componant* Componant::copy(Componant* componant) return new Resistor(*dynamic_cast<Resistor*>(componant)); case 'c': return new Cap(*dynamic_cast<Cap*>(componant)); + case 'i': + return new Inductor(*dynamic_cast<Inductor*>(componant)); case 'p': return new Cpe(*dynamic_cast<Cpe*>(componant)); case 'w': @@ -39,6 +42,8 @@ char Componant::getComponantChar(Componant* componant) return 'r'; if(dynamic_cast<Cap*>(componant)) return 'c'; + if(dynamic_cast<Inductor*>(componant)) + return 'i'; if(dynamic_cast<Cpe*>(componant)) return 'p'; if(dynamic_cast<Warburg*>(componant))