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:
Simon Budig 2004-09-18 19:37:01 +00:00 committed by Simon Budig
parent adf71de005
commit eaf1b6801d
2 changed files with 23 additions and 17 deletions

View File

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

View File

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