Commit 736c547b authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

add colors after the cursor. Fixes bug #150608.

2005-07-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppaletteeditor.c (gimp_palette_editor_pick_color):
	add colors after the cursor. Fixes bug #150608.
parent 02abc41c
2005-07-13 Michael Natterer <mitch@gimp.org>
* app/widgets/gimppaletteeditor.c (gimp_palette_editor_pick_color):
add colors after the cursor. Fixes bug #150608.
2005-07-13 Michael Natterer <mitch@gimp.org>
* app/pdb/procedural_db.c (procedural_db_init_procs): sorted list
......
......@@ -493,12 +493,16 @@ gimp_palette_editor_pick_color (GimpPaletteEditor *editor,
if (GIMP_DATA_EDITOR (editor)->data_editable)
{
GimpData *data = gimp_data_editor_get_data (GIMP_DATA_EDITOR (editor));
GimpData *data = gimp_data_editor_get_data (GIMP_DATA_EDITOR (editor));
gint index = -1;
switch (pick_state)
{
case GIMP_COLOR_PICK_STATE_NEW:
editor->color = gimp_palette_add_entry (GIMP_PALETTE (data), -1,
if (editor->color)
index = editor->color->position + 1;
editor->color = gimp_palette_add_entry (GIMP_PALETTE (data), index,
NULL, color);
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