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
This commit is contained in:
xavier
2010-03-13 19:17:24 +00:00
parent c431daef74
commit 44b07bcbd2

View File

@@ -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
);
}