[GB.IMAGE.IO]

* BUG: Load non-square image without crashing!


git-svn-id: svn://localhost/gambas/trunk@2913 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2010-04-26 09:43:10 +00:00
parent e02caaf252
commit 5d70e7ad54

View file

@ -84,7 +84,7 @@ BEGIN_METHOD(CIMAGE_load, GB_STRING path)
default: GB.Error("Unsupported number of channels"); goto __END;
}
GB.ReturnObject(IMAGE.Create(gdk_pixbuf_get_width(img), gdk_pixbuf_get_width(img), format, gdk_pixbuf_get_pixels(img)));
GB.ReturnObject(IMAGE.Create(gdk_pixbuf_get_width(img), gdk_pixbuf_get_height(img), format, gdk_pixbuf_get_pixels(img)));
g_object_unref(G_OBJECT(img));
__END: