mirror of https://github.com/GNOME/gimp.git
Removed check for len % 3 == 0, so that the entry accepts hex colors
2004-09-18 Simon Budig <simon@gimp.org> * libgimpwidgets/gimpcolorhexentry.c: Removed check for len % 3 == 0, so that the entry accepts hex colors starting with "#" again. Untabbified.
This commit is contained in:
parent
adf71de005
commit
eaf1b6801d
|
@ -1,3 +1,9 @@
|
|||
2004-09-18 Simon Budig <simon@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpcolorhexentry.c: Removed check for len % 3 == 0,
|
||||
so that the entry accepts hex colors starting with "#" again.
|
||||
Untabbified.
|
||||
|
||||
2004-09-18 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/Makefile.am: remove LDFLAGS references to now private
|
||||
|
|
|
@ -265,8 +265,8 @@ gimp_color_hex_entry_events (GtkWidget *widget,
|
|||
gsize len = strlen (text);
|
||||
|
||||
if (len > 0 &&
|
||||
((len % 3 == 0 && gimp_rgb_parse_hex (&color, text, len)) ||
|
||||
(gimp_rgb_parse_name (&color, text, -1))))
|
||||
(gimp_rgb_parse_hex (&color, text, len) ||
|
||||
gimp_rgb_parse_name (&color, text, -1)))
|
||||
{
|
||||
gimp_color_hex_entry_set_color (entry, &color);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue