Code

Fixed compilation when the new SVG font stuff is not enabled.
[inkscape.git] / src / sp-font.cpp
index fe6bf282ae8e918ae7a7186a2890783df7edc726..c99d5a1b66814da6e93812de1539702be92a1620 100644 (file)
@@ -1,6 +1,8 @@
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #ifdef ENABLE_SVG_FONTS
-#define __SP_FONT_C__
 
 /*
  * SVG <font> element implementation
@@ -102,6 +104,8 @@ static void sp_font_build(SPObject *object, SPDocument *document, Inkscape::XML:
     sp_object_read_attr(object, "vert-adv-y");
 
     SvgFont* svgfont = new SvgFont(SP_FONT(object));
+
+    sp_document_add_resource(document, "font", object);
 }