Magnifier DBus setCrosswireColor() doesn't convert correctly to hex string.

Modified setCrosswireColor() in magnifierDBus.js to correctly pad hex string
with leading zeroes when converting from integer.

https://bugzilla.gnome.org/show_bug.cgi?id=622508
This commit is contained in:
Joseph Scheuhammer 2010-06-24 18:43:55 -04:00 committed by Owen W. Taylor
parent 6873539846
commit c19c236dbf

View File

@ -267,7 +267,7 @@ ShellMagnifier.prototype = {
* @color: Unsigned int of the form rrggbbaa.
*/
setCrosswireColor: function(color) {
Main.magnifier.setCrosshairsColor('#' + color.toString(16));
Main.magnifier.setCrosshairsColor('#%08x'.format(color));
},
/**