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:
parent
6873539846
commit
c19c236dbf
@ -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));
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user