Commit 3ab1389b authored by MihailZenkov's avatar MihailZenkov Committed by Michael Natterer
Browse files

Bug 770600 - Fix broken export to PBM

Use the drawable's (indexed bitmap) format instead of "Y' u8" when
exporting to PBM, this got broken when porting to GEGL.
parent f222a08e
......@@ -1228,7 +1228,7 @@ save_image (GFile *file,
if (pbm)
{
header_string = "P1\n";
format = babl_format ("Y' u8");
format = gegl_buffer_get_format (buffer);
np = 0;
rowbufsize = xres + (int) (xres / 70) + 1;
saverow = pnmsaverow_ascii_pbm;
......@@ -1272,7 +1272,7 @@ save_image (GFile *file,
if (pbm)
{
header_string = "P4\n";
format = babl_format ("Y' u8");
format = gegl_buffer_get_format (buffer);
np = 0;
rowbufsize = (gint) ceil ((gdouble) xres / 8.0);
saverow = pnmsaverow_raw_pbm;
......
Supports Markdown
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