Skip to content

Commit 3bf600c

Browse files
committed
Compare print layout basename when comparing against defaultPrintLayout
1 parent a5092d3 commit 3bf600c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config_generator/map_viewer_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def theme_item(self, cfg_item, themes_config, assets_dir, autogenExternalLayers,
489489
]
490490
print_template['labels'] = labels
491491

492-
print_template['default'] = print_template['name'] == cfg_item.get('defaultPrintLayout')
492+
print_template['default'] = print_template['name'].split("/")[-1] == cfg_item.get('defaultPrintLayout')
493493
item['print'] = print_templates
494494

495495
self.set_optional_config(cfg_item, 'printLabelConfig', item)

0 commit comments

Comments
 (0)