From 2be2cf32db0668dc64512a98f6c2394152bd10cc Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sat, 16 Jul 2011 00:42:39 -0700 Subject: Cleanup of oudated/redundant SP_ITEM() macro use. (bzr r10461) --- src/path-chemistry.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 607d0ab6a..bd72632b2 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -205,14 +205,16 @@ sp_selected_path_break_apart(SPDesktop *desktop) SPItem *item = (SPItem *) items->data; - if (!SP_IS_PATH(item)) + if (!SP_IS_PATH(item)) { continue; + } SPPath *path = SP_PATH(item); - SPCurve *curve = sp_path_get_curve_for_edit(SP_PATH(path)); - if (curve == NULL) + SPCurve *curve = sp_path_get_curve_for_edit(path); + if (curve == NULL) { continue; + } did = true; @@ -225,7 +227,7 @@ sp_selected_path_break_apart(SPDesktop *desktop) // XML Tree being used directly here while it shouldn't be... gchar *path_effect = g_strdup(item->getRepr()->attribute("inkscape:path-effect")); - Geom::PathVector apv = curve->get_pathvector() * SP_ITEM(path)->transform; + Geom::PathVector apv = curve->get_pathvector() * path->transform; curve->unref(); -- cgit v1.2.3