Commit 5dcbaeb2 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

fixed long-standing bug in the calculation of the depth of the

2005-06-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimpselection.c (gimp_selection_extract): fixed
	long-standing bug in the calculation of the depth of the
	tile-manager created when copying from an indexed drawable.
parent 83ca915f
2005-06-17 Sven Neumann <sven@gimp.org>
* app/core/gimpselection.c (gimp_selection_extract): fixed
long-standing bug in the calculation of the depth of the
tile-manager created when copying from an indexed drawable.
2005-06-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/unsharp-mask.scm: removed menu
......
......@@ -697,7 +697,8 @@ gimp_selection_extract (GimpChannel *selection,
}
else
{
bytes = add_alpha ? 4 : drawable->bytes;
bytes = (add_alpha ||
gimp_drawable_has_alpha (drawable)) ? 4 : 3;
base_type = GIMP_INDEXED;
}
break;
......
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