Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / extension / internal / gimpgrad.cpp
index 5b3e0c16ef2e37bf7427d6951906fd7777730ed7..e92a4e17e0e14f0ccb6257abac3cce709f39b1cc 100644 (file)
@@ -5,6 +5,7 @@
 /*
  * Authors:
  *   Ted Gould <ted@gould.cx>
+ *   Abhishek Sharma
  *
  * Copyright (C) 2004-2005 Authors
  *
@@ -256,7 +257,7 @@ GimpGrad::open (Inkscape::Extension::Input */*module*/, gchar const *filename)
 
         fclose(gradient);
 
-        return sp_document_new_from_mem(outsvg.c_str(), outsvg.length(), TRUE);
+        return SPDocument::createNewDocFromMem(outsvg.c_str(), outsvg.length(), TRUE);
     }
 
 error: