mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
Reset invalid opacity values to default (#1923)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user