gatesim crash on reload a circuit
Brought to you by:
steven777400
gatesim crash after reloadin a previously saved circuit. Porblem seems related on Internationalization features (I m in "Italy"): decimal numbers are stored using "dot" as decimal separation but they are reed as thousand separators and droped it. Thus decimal number became very big. I workaround put .Replace(".",",") at the end of the line 271-272 of CircuitSML.cs:
double x = double.Parse(gate.Element("Point").Attribute("X").Value.Replace(".",","));
double y = double.Parse(gate.Element("Point").Attribute("Y").Value.Replace(".", ","));