Code

Added missing (and very important) file.
[inkscape.git] / src / extension / internal / wpg-input.cpp
index c385a9f14070f28eeb5a5cbcff659b294a703c81..c37d5705b4bc0b0077fc2506a9b129ed0b6bd79f 100644 (file)
@@ -39,6 +39,9 @@
  */
 
 #include <stdio.h>
+#include "config.h"
+
+#ifdef WITH_LIBWPG
 
 #include "wpg-input.h"
 #include "extension/system.h"
@@ -48,6 +51,7 @@
 #include "libwpg/libwpg.h"
 #include "libwpg/WPGStreamImplementation.h"
 
+
 using namespace libwpg;
 
 namespace Inkscape {
@@ -94,7 +98,7 @@ WpgInput::init(void) {
     Inkscape::Extension::Extension * ext;
 
     ext = Inkscape::Extension::build_from_mem(
-        "<inkscape-extension>\n"
+        "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
             "<name>" N_("WPG Input") "</name>\n"
             "<id>org.inkscape.input.wpg</id>\n"
             "<input>\n"
@@ -107,6 +111,7 @@ WpgInput::init(void) {
 } // init
 
 } } }  /* namespace Inkscape, Extension, Implementation */
+#endif /* WITH_LIBWPG */
 
 /*
   Local Variables: