[gegl] Fixed jpg-load and png-load to default to a 0x0 bounding rect instead of 10x10 which was causing pro



commit 9699a0d476647fe66035e3b49f81d993b9970b5f
Author: Isaac Wagner <isaacbw src gnome org>
Date:   Wed Aug 8 15:40:18 2012 -0400

    Fixed jpg-load and png-load to default to a 0x0 bounding rect instead of 10x10 which was causing problems

 operations/external/jpg-load.c |    4 ++--
 operations/external/png-load.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/external/jpg-load.c b/operations/external/jpg-load.c
index e61ea54..a1e47d8 100644
--- a/operations/external/jpg-load.c
+++ b/operations/external/jpg-load.c
@@ -152,8 +152,8 @@ gegl_jpg_load_get_bounding_box (GeglOperation *operation)
   if (status)
     {
       /*g_warning ("calc have rect of %s failed", o->path);*/
-      result.width  = 10;
-      result.height  = 10;
+      result.width  = 0;
+      result.height  = 0;
     }
   else
     {
diff --git a/operations/external/png-load.c b/operations/external/png-load.c
index 89fc9a6..0505934 100644
--- a/operations/external/png-load.c
+++ b/operations/external/png-load.c
@@ -378,8 +378,8 @@ get_bounding_box (GeglOperation *operation)
 
   if (status)
     {
-      width=10;
-      height=10;
+      width = 0;
+      height = 0;
     }
 
   gegl_operation_set_format (operation, "output", format);



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