Simplification des mecanismes internes de selection sur les schemas.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@594 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-04-18 15:30:44 +00:00
parent 4fea5dee44
commit f23c1b1d93
5 changed files with 44 additions and 35 deletions

View File

@@ -86,7 +86,7 @@ QPointF ElementTextItem::pos() const {
*/
void ElementTextItem::fromXml(const QDomElement &e) {
QPointF _pos = pos();
if (e.attribute("x").toDouble() == _pos.x() && e.attribute("y").toDouble() == _pos.y()) {
if (qFuzzyCompare(e.attribute("x").toDouble(), _pos.x()) && qFuzzyCompare(e.attribute("y").toDouble(), _pos.y())) {
setPlainText(e.attribute("text"));
previous_text = e.attribute("text");
}