Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / sp-textpath.h
index 76d236cc9bfa91c584086b6f2f299e3028a268a8..2f30f6023b7df9f916ae10fc0c5f88e47cd4dba5 100644 (file)
@@ -31,7 +31,7 @@ struct SPTextPathClass {
 
 GType sp_textpath_get_type();
 
-#define SP_IS_TEXT_TEXTPATH(obj) (SP_IS_TEXT(obj) && sp_object_first_child(obj) && SP_IS_TEXTPATH(sp_object_first_child(obj)))
+#define SP_IS_TEXT_TEXTPATH(obj) (SP_IS_TEXT(obj) && obj->firstChild() && SP_IS_TEXTPATH(obj->firstChild()))
 
 SPItem *sp_textpath_get_path_item(SPTextPath *tp);
 void sp_textpath_to_text(SPObject *tp);