summaryrefslogtreecommitdiffstats
path: root/src/itemdocumentdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemdocumentdata.cpp')
-rw-r--r--src/itemdocumentdata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itemdocumentdata.cpp b/src/itemdocumentdata.cpp
index c0efc5d..669d1c8 100644
--- a/src/itemdocumentdata.cpp
+++ b/src/itemdocumentdata.cpp
@@ -683,7 +683,7 @@ void ItemDocumentData::elementToConnectorData( TQDomElement element )
ConnectorData connectorData;
- connectorData.manualRoute = element.attribute( "manual-route", "0" );
+ connectorData.manualRoute = element.attribute("manual-route", "0").toInt();
TQString route = element.attribute( "route", "" );
TQStringList points = TQStringList::split( ",", route );
@@ -992,7 +992,7 @@ void ItemDocumentData::mergeWithDocument( ItemDocument *itemDocument, bool selec
{
if ( !it.data().type.isEmpty() && !itemDocument->itemWithID( it.key() ) )
{
- Item *item = itemLibrary()->createItem( it.data().type, itemDocument, false, it.key(), false );
+ Item *item = itemLibrary()->createItem(it.data().type, itemDocument, false, it.key().utf8(), false);
if ( item && !itemDocument->isValidItem(item) )
{
kdWarning() << "Attempted to create invalid item with id: " << it.key() << endl;