summaryrefslogtreecommitdiffstats
path: root/src/sp-title.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-title.cpp')
-rw-r--r--src/sp-title.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-title.cpp b/src/sp-title.cpp
index c820c70f0..d21c7b71e 100644
--- a/src/sp-title.cpp
+++ b/src/sp-title.cpp
@@ -66,11 +66,12 @@ static Inkscape::XML::Node *
sp_title_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags)
{
if (!repr) {
- repr = SP_OBJECT_REPR (object)->duplicate(doc);
+ repr = object->getRepr()->duplicate(doc);
}
- if (((SPObjectClass *) title_parent_class)->write)
+ if (((SPObjectClass *) title_parent_class)->write) {
((SPObjectClass *) title_parent_class)->write(object, doc, repr, flags);
+ }
return repr;
}