[qet] [3483] Diagram image item fix : At opening of diagram, position is wrong if image was saved with is_movable to false;

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3483
Author:   blacksun
Date:     2014-11-13 13:12:53 +0100 (Thu, 13 Nov 2014)
Log Message:
-----------
Diagram image item fix : At opening of diagram, position is wrong if image was saved with is_movable to false;

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/diagramimageitem.cpp

Modified: trunk/sources/qetgraphicsitem/diagramimageitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/diagramimageitem.cpp	2014-11-13 11:21:06 UTC (rev 3482)
+++ trunk/sources/qetgraphicsitem/diagramimageitem.cpp	2014-11-13 12:12:53 UTC (rev 3483)
@@ -198,7 +198,6 @@
 	if (e.tagName() != "image") return (false);
 	QDomNode image_node = e.firstChild();
 	if (!image_node.isText()) return (false);
-	is_movable_ = (e.attribute("is_movable").toInt());
 
 	//load xml image to QByteArray
 	QByteArray array;
@@ -212,6 +211,7 @@
 	setScale(e.attribute("size").toDouble());
 	applyRotation(e.attribute("rotation").toDouble());
 	setPos(e.attribute("x").toDouble(), e.attribute("y").toDouble());
+	is_movable_ = (e.attribute("is_movable").toInt());
 
 	return (true);
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/