diff --git a/sources/qetgraphicsitem/diagramimageitem.cpp b/sources/qetgraphicsitem/diagramimageitem.cpp index 63e1dd074..4b57072cb 100644 --- a/sources/qetgraphicsitem/diagramimageitem.cpp +++ b/sources/qetgraphicsitem/diagramimageitem.cpp @@ -198,7 +198,7 @@ bool DiagramImageItem::fromXml(const QDomElement &e) { if (e.tagName() != "image") return (false); QDomNode image_node = e.firstChild(); if (!image_node.isText()) return (false); - is_movable_ = e.attribute("is_movable", "true").toInt (); + is_movable_ = (e.attribute("is_movable").toInt()); //load xml image to QByteArray QByteArray array; diff --git a/sources/qetgraphicsitem/qetshapeitem.cpp b/sources/qetgraphicsitem/qetshapeitem.cpp index 37c52b541..0744b9113 100644 --- a/sources/qetgraphicsitem/qetshapeitem.cpp +++ b/sources/qetgraphicsitem/qetshapeitem.cpp @@ -204,7 +204,7 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti bool QetShapeItem::fromXml(const QDomElement &e) { if (e.tagName() != "shape") return (false); - is_movable_ = e.attribute("is_movable", "true").toInt (); + is_movable_ = (e.attribute("is_movable").toInt()); m_shapeStyle = Qt::PenStyle(e.attribute("style","0").toInt()); if (e.attribute("type", "0").toInt() != Polyline) {