summaryrefslogtreecommitdiff
path: root/src/diagramitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagramitem.cpp')
-rw-r--r--src/diagramitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diagramitem.cpp b/src/diagramitem.cpp
index cd591ec..23cd83b 100644
--- a/src/diagramitem.cpp
+++ b/src/diagramitem.cpp
@@ -40,7 +40,7 @@ DiagramItem::document() const
void
DiagramItem::loadFromXml(QDomElement element, DiagramDocument *)
{
- setId(element.attribute("id", QUuid()));
+ setId(element.attribute("id", QUuid().toString()));
setPos(readPointElement(element, "position"));
}
@@ -48,7 +48,7 @@ void
DiagramItem::saveToXml(QDomDocument doc, QDomElement element)
{
element.setAttribute("type", typeName());
- element.setAttribute("id", id());
+ element.setAttribute("id", id().toString());
appendPointElement(doc, element, "position", pos());
}