Re: [evolution-patches] mail config: spell color formatting fix
- From: Not Zed <notzed ximian com>
- To: Radek Doulík <rodo ximian com>
- Cc: Patches <evolution-patches ximian com>
- Subject: Re: [evolution-patches] mail config: spell color formatting fix
- Date: 02 Jun 2003 09:25:20 +0930
- fprintf (rc, " GtkHTML::spell_error_color =
\"#%2x%2x%2x\"\n",
+ fprintf (rc, " GtkHTML::spell_error_color =
\"#%02x%02x%02x\"\n",
red >> 8, green >> 8, blue >> 8);
FWIW this should probably use
(red >> 8) & 0xff
etc.
Since %02x will not truncate the output if it is larger than 2 chars
(and neither will %02.2x work).
(not an issue with this patch tho)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]