Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / widgets / gradient-selector.cpp
index 5b663c49302a284fbd02ce79d98ba2d1cad94930..49549de1c51d49e19a7b26122e1b671757774f93 100644 (file)
@@ -340,7 +340,7 @@ sp_gradient_selector_add_vector_clicked (GtkWidget */*w*/, SPGradientSelector *s
 
     SPGradient *gr = sp_gradient_vector_selector_get_gradient(
                                                               SP_GRADIENT_VECTOR_SELECTOR (sel->vectors));
-    Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc);
+    Inkscape::XML::Document *xml_doc = doc->getReprDoc();
 
     Inkscape::XML::Node *repr = NULL;