Reset invalid opacity values to default (#1923)

This commit is contained in:
John Firebaugh
2013-10-26 17:33:41 -07:00
parent d9627139d9
commit 68fae301e5

View File

@@ -9,6 +9,9 @@ iD.ui.Background = function(context) {
opacityDefault = (context.storage('background-opacity') !== null) ?
(+context.storage('background-opacity')) : 0.5;
// Can be 0 from <1.3.0 use or due to issue #1923.
if (opacityDefault === 0) opacityDefault = 0.5;
function background(selection) {
function setOpacity(d) {