[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:
parent
e02caaf252
commit
5d70e7ad54
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue