summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-07-16 07:42:39 +0000
committerJon A. Cruz <jon@joncruz.org>2011-07-16 07:42:39 +0000
commit2be2cf32db0668dc64512a98f6c2394152bd10cc (patch)
tree8e25abb2f884e06692d861e6a1471440d6554946 /src/path-chemistry.cpp
parentadded WITH_GNOME_VFS as an option for cmake (diff)
downloadinkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.tar.gz
inkscape-2be2cf32db0668dc64512a98f6c2394152bd10cc.zip
Cleanup of oudated/redundant SP_ITEM() macro use.
(bzr r10461)
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp10
1 files changed, 6 insertions, 4 deletions
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();