mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +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) {
|
bool Terminal::fromXml(QDomElement &terminal) {
|
||||||
return (
|
return (
|
||||||
terminal.attribute("x").toDouble() == amarrage_elmt.x() &&\
|
qFuzzyCompare(terminal.attribute("x").toDouble(), amarrage_elmt.x()) &&
|
||||||
terminal.attribute("y").toDouble() == amarrage_elmt.y() &&\
|
qFuzzyCompare(terminal.attribute("y").toDouble(), amarrage_elmt.y()) &&
|
||||||
terminal.attribute("orientation").toInt() == sens
|
terminal.attribute("orientation").toInt() == sens
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user