![](https://secure.gravatar.com/avatar/214fe9a0ecb4aed8994e8618ade6f5a8.jpg?s=120&d=mm&r=g)
4 Apr
2007
4 Apr
'07
6:47 a.m.
I saw this warning during a compile, and this obviously needs to be fixed. If someone knows what 'doc' should be in this code, could they please fix it? It looks a bit dangerous.
Thanks, bob
====== SNIP ====== src/widgets/gradient-selector.cpp, line 302:
static void sp_gradient_selector_add_vector_clicked (GtkWidget *w, SPGradientSelector *sel) { SPDocument *doc; SPGradient *gr; Inkscape::XML::Node *repr; Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc);