diff --git a/src/selection.cpp b/src/selection.cpp
index 702cc6594ac5579ea4f63c21335f1462f7b74965..413048f5c230f037312914b0b1bc0a806cd6e5d4 100644 (file)
--- a/src/selection.cpp
+++ b/src/selection.cpp
g_return_val_if_fail(repr != NULL, NULL);
gchar const *id = repr->attribute("id");
g_return_val_if_fail(id != NULL, NULL);
- SPObject *object=SP_DT_DOCUMENT(_desktop)->getObjectById(id);
+ SPObject *object=sp_desktop_document(_desktop)->getObjectById(id);
g_return_val_if_fail(object != NULL, NULL);
return object;
}