Code

include <string.h>. also remove const conversion warning
authorishmal <ishmal@users.sourceforge.net>
Tue, 22 Jul 2008 15:20:32 +0000 (15:20 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 22 Jul 2008 15:20:32 +0000 (15:20 +0000)
src/display/canvas-text.cpp

index c38d16d65fa7b5a9f39b3af9b08e9e664731d053..d93fc3167ef799391491ea32105b950fd83c653f 100644 (file)
@@ -18,6 +18,7 @@
 #include "canvas-text.h"
 #include "display/inkscape-cairo.h"
 #include <sstream>
+#include <string.h>
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -43,7 +44,7 @@ sp_canvastext_get_type (void)
 
     if (!type) {
         GtkTypeInfo info = {
-            "SPCanvasText",
+            (gchar *)"SPCanvasText",
             sizeof (SPCanvasText),
             sizeof (SPCanvasTextClass),
             (GtkClassInitFunc) sp_canvastext_class_init,