summaryrefslogtreecommitdiffstats
path: root/src/sp-anchor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-anchor.cpp')
-rw-r--r--src/sp-anchor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-anchor.cpp b/src/sp-anchor.cpp
index e57ac8a58..517512eb2 100644
--- a/src/sp-anchor.cpp
+++ b/src/sp-anchor.cpp
@@ -152,7 +152,7 @@ static Inkscape::XML::Node *sp_anchor_write(SPObject *object, Inkscape::XML::Doc
repr->setAttribute("xlink:href", anchor->href);
- if (repr != SP_OBJECT_REPR(object)) {
+ if (repr != object->getRepr()) {
// XML Tree being directly used while it shouldn't be in the
// below COPY_ATTR lines
COPY_ATTR(repr, object->getRepr(), "xlink:type");