diff --git a/sources/terminal.cpp b/sources/terminal.cpp index 58bb10387..bc083f4a7 100644 --- a/sources/terminal.cpp +++ b/sources/terminal.cpp @@ -484,8 +484,8 @@ bool Terminal::valideXml(QDomElement &terminal) { */ bool Terminal::fromXml(QDomElement &terminal) { return ( - terminal.attribute("x").toDouble() == amarrage_elmt.x() &&\ - terminal.attribute("y").toDouble() == amarrage_elmt.y() &&\ + qFuzzyCompare(terminal.attribute("x").toDouble(), amarrage_elmt.x()) && + qFuzzyCompare(terminal.attribute("y").toDouble(), amarrage_elmt.y()) && terminal.attribute("orientation").toInt() == sens ); }