mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
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:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user