Commit 7dd91e30 authored by Jean Bréfort's avatar Jean Bréfort

Ensure that the pixbuf stores the image type.

parent 945b7f5c
2015-02-28 Jean Brefort <jean.brefort@normalesup.org>
* src/sheet-object-image.c (gnm_soi_assign_to_sheet): ensure that the
pixbuf stores the image type.
2015-02-28 Morten Welinder <terra@gnome.org>
* src/sheet-object-image.c (SheetObjectImage): Just keep the
......
......@@ -507,8 +507,12 @@ gnm_soi_assign_to_sheet (SheetObject *so, Sheet *sheet)
} else if (soi->name) {
GODoc *doc = GO_DOC (sheet->workbook);
GType type = go_image_type_for_format (soi->type);
if (type != 0)
if (type != 0) {
soi->image = g_object_ref (go_doc_image_fetch (doc, soi->name, type));
if (GO_IS_PIXBUF (soi->image))
/* we need to ensure that the pixbuf type is set because it used to be missed, see #745297 */
g_object_set (soi->image, "image-type", soi->type, NULL);
}
} else {
/* There is nothing we can do */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment