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.
This commit is contained in:
Michael Natterer 2005-07-13 16:23:54 +00:00 committed by Michael Natterer
parent 02abc41cdf
commit 736c547bd8
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;