diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp
index 5de222adef48e3f4945536e02d63c6f67d88655f..d90eca49b1ac20c5e1007517557295736e4bf043 100644 (file)
--- a/src/conn-avoid-ref.cpp
+++ b/src/conn-avoid-ref.cpp
{
// Don't count this as changes to the document,
// it is basically just llate initialisation.
- SPDocument *document = SP_DT_DOCUMENT(desktop);
+ SPDocument *document = sp_desktop_document(desktop);
gboolean saved = sp_document_get_undo_sensitive(document);
sp_document_set_undo_sensitive(document, FALSE);