summaryrefslogtreecommitdiffstats
path: root/src/sp-conn-end.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/sp-conn-end.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/sp-conn-end.cpp')
-rw-r--r--src/sp-conn-end.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sp-conn-end.cpp b/src/sp-conn-end.cpp
index 538638d7a..71b4f45a7 100644
--- a/src/sp-conn-end.cpp
+++ b/src/sp-conn-end.cpp
@@ -141,12 +141,11 @@ sp_conn_get_route_and_redraw(SPPath *const path,
return;
}
- SPItem *h2attItem[2];
+ SPItem *h2attItem[2] = {0};
path->connEndPair.getAttachedItems(h2attItem);
- SPItem const *const path_item = SP_ITEM(path);
- SPObject const *const ancestor = get_nearest_common_ancestor(path_item, h2attItem);
- Geom::Affine const path2anc(i2anc_affine(path_item, ancestor));
+ SPObject const *const ancestor = get_nearest_common_ancestor(path, h2attItem);
+ Geom::Affine const path2anc(i2anc_affine(path, ancestor));
// Set sensible values incase there the connector ends are not
// attached to any shapes.