From 0e0ce7571944e0a9d60294b6efdc855e6df52db8 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 22 Feb 2011 01:17:44 -0800 Subject: Finished cleanup of outdated SP_OBJECT_REPR C macro. (bzr r10067) --- src/sp-title.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sp-title.cpp') 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; } -- cgit v1.2.3