From 309a00bf6b8a0a7e74553f33b563bf03163af968 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sat, 29 Mar 2008 22:17:45 +0000 Subject: Fix passing wrong pointer type when using the tweak tool on 3D boxes (bzr r5232) --- src/box3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/box3d.cpp') diff --git a/src/box3d.cpp b/src/box3d.cpp index f57452101..d7ec7ef07 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -1361,7 +1361,7 @@ box3d_switch_perspectives(SPBox3D *box, Persp3D *old_persp, Persp3D *new_persp, /* Converts the 3D box to an ordinary SPGroup, adds it to the XML tree at the same position as the original box and deletes the latter */ -Inkscape::XML::Node * +SPGroup * box3d_convert_to_group(SPBox3D *box) { SPDocument *doc = SP_OBJECT_DOCUMENT(box); Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc); @@ -1403,7 +1403,7 @@ box3d_convert_to_group(SPBox3D *box) { grepr->setAttribute("id", id); - return grepr; + return SP_GROUP(doc->getObjectByRepr(grepr)); } static inline void -- cgit v1.2.3