summaryrefslogtreecommitdiffstats
path: root/src/sp-conn-end.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-conn-end.cpp')
-rw-r--r--src/sp-conn-end.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sp-conn-end.cpp b/src/sp-conn-end.cpp
index d11eca4c7..71b4f45a7 100644
--- a/src/sp-conn-end.cpp
+++ b/src/sp-conn-end.cpp
@@ -4,7 +4,6 @@
#include <limits>
#include "display/curve.h"
-#include "libnr/nr-matrix-fns.h"
#include "xml/repr.h"
#include "sp-conn-end.h"
#include "sp-path.h"
@@ -142,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.