gegl r1934 - in trunk: . operations/meta



Author: neo
Date: Tue Jan 29 07:40:41 2008
New Revision: 1934
URL: http://svn.gnome.org/viewvc/gegl?rev=1934&view=rev

Log:
	* operations/meta/layer.c (prepare): fixed the same bug here.



Modified:
   trunk/ChangeLog
   trunk/operations/meta/layer.c

Modified: trunk/operations/meta/layer.c
==============================================================================
--- trunk/operations/meta/layer.c	(original)
+++ trunk/operations/meta/layer.c	Tue Jan 29 07:40:41 2008
@@ -101,8 +101,9 @@
 
           if (!g_file_test (self->src, G_FILE_TEST_EXISTS))
             {
-              gchar *tmp = g_malloc(strlen (self->src) + 100);
-              g_sprintf (tmp, "File '%s' does not exist", self->src);
+              gchar *name = g_filename_display_name (self->path);
+              gchar *tmp  = g_strdup_printf ("File '%s' does not exist", name);
+              g_free (name);
               g_warning ("load: %s", tmp);
               gegl_node_set (priv->load,
                              "operation", "text",
@@ -115,10 +116,10 @@
             {
               if (extension)
                 handler = gegl_extension_handler_get (extension);
-              gegl_node_set (priv->load, 
+              gegl_node_set (priv->load,
                              "operation", handler,
                              NULL);
-              gegl_node_set (priv->load, 
+              gegl_node_set (priv->load,
                              "path",  self->src,
                              NULL);
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]