summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-tref.cpp')
-rw-r--r--src/sp-tref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp
index 223cf3cec..87e8498f3 100644
--- a/src/sp-tref.cpp
+++ b/src/sp-tref.cpp
@@ -405,7 +405,7 @@ void sp_tref_update_text(SPTRef *tref)
Inkscape::XML::Document *xml_doc = tref->document->getReprDoc();
Inkscape::XML::Node *newStringRepr = xml_doc->createTextNode(charData.c_str());
- tref->stringChild = SPFactory::instance().createObject(*newStringRepr); //SP_OBJECT(g_object_new(sp_repr_type_lookup(newStringRepr), NULL));
+ tref->stringChild = SPFactory::instance().createObject(NodeTraits::getTypeString(*newStringRepr));
// Add this SPString as a child of the tref
tref->attach(tref->stringChild, tref->lastChild());