mirror of https://github.com/GNOME/gimp.git
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:
parent
02abc41cdf
commit
736c547bd8
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue