SF.net SVN: geany: [1713] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Tue Jul 17 09:14:14 UTC 2007
Revision: 1713
http://svn.sourceforge.net/geany/?rev=1713&view=rev
Author: eht16
Date: 2007-07-17 02:14:13 -0700 (Tue, 17 Jul 2007)
Log Message:
-----------
Fix creation of wrong hex colours when inserting colours from the colour chooser dialog.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/win32.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-17 08:39:17 UTC (rev 1712)
+++ trunk/ChangeLog 2007-07-17 09:14:13 UTC (rev 1713)
@@ -15,6 +15,8 @@
Rename geany.desktop.in to geany.desktop.in.in.
Add Makefile.in.in in po/ to get translation status from msgfmt
when running make.
+ * src/win32.c: Fix creation of wrong hex colours when inserting colours
+ from the colour chooser dialog.
2007-07-16 Enrico Tröger <enrico.troeger at uvena.de>
Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c 2007-07-17 08:39:17 UTC (rev 1712)
+++ trunk/src/win32.c 2007-07-17 09:14:13 UTC (rev 1713)
@@ -392,7 +392,7 @@
if (ChooseColor(&cc))
{
rgb_current = cc.rgbResult;
- g_snprintf(hex, 11, "#%2X%2X%2X",
+ g_snprintf(hex, 11, "#%02X%02X%02X",
(guint) (utils_scale_round(GetRValue(rgb_current), 255)),
(guint) (utils_scale_round(GetGValue(rgb_current), 255)),
(guint) (utils_scale_round(GetBValue(rgb_current), 255)));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list