From 44b07bcbd26ec189fffd4fcff3cc8e5d3d83c90a Mon Sep 17 00:00:00 2001 From: xavier Date: Sat, 13 Mar 2010 19:17:24 +0000 Subject: [PATCH] Correction : un element pose sur un schema pouvait ne pas etre relu si ses bornes utilisaient des coordonnees flottantes. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@895 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/terminal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }