Skip to content

Commit

Permalink
fixed empty namespace issue in fusion colour palattes (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonguo authored Nov 2, 2019
1 parent 38145ac commit c23df96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func (config *Config) processFusionColourPalette(i int, configMap map[string]*Co
layer := &configMap[refNameSpace].Layers[layerIdx]
layerBase := layer
if styleIdx >= 0 {
layer = &configMap[refLayer.NameSpace].Layers[layerIdx].Styles[styleIdx]
layer = &configMap[refNameSpace].Layers[layerIdx].Styles[styleIdx]
}

if hasBlendedService(layerBase) && layer.Palette == nil {
Expand Down Expand Up @@ -784,7 +784,7 @@ func (config *Config) processFusionColourPalette(i int, configMap map[string]*Co
layer := &configMap[refNameSpace].Layers[layerIdx]
layerBase := layer
if styleIdx >= 0 {
layer = &configMap[refLayer.NameSpace].Layers[layerIdx].Styles[styleIdx]
layer = &configMap[refNameSpace].Layers[layerIdx].Styles[styleIdx]
}

if hasBlendedService(layerBase) && layer.Palette == nil {
Expand Down

0 comments on commit c23df96

Please sign in to comment.