Fix background defaulting to 0% brightness (fixes #1923)

This commit is contained in:
John Firebaugh
2013-10-26 16:49:43 -07:00
parent 40519b98dd
commit d9e6b1cc38

View File

@@ -6,7 +6,7 @@ iD.ui.Background = function(context) {
['top', [0, -1]],
['right', [-1, 0]],
['bottom', [0, 1]]],
opacityDefault = (context.storage('background-opacity') !== undefined) ?
opacityDefault = (context.storage('background-opacity') !== null) ?
(+context.storage('background-opacity')) : 0.5;
function background(selection) {