Skip to content

Commit 6266988

Browse files
committed
Compare print layout basename when comparing against defaultPrintLayout
1 parent 292998f commit 6266988

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
@@ -493,7 +493,7 @@ def theme_item(self, cfg_item, themes_config, assets_dir, autogenExternalLayers,
493493
]
494494
print_template['labels'] = labels
495495

496-
print_template['default'] = print_template['name'] == cfg_item.get('defaultPrintLayout')
496+
print_template['default'] = print_template['name'].split("/")[-1] == cfg_item.get('defaultPrintLayout')
497497
item['print'] = print_templates
498498

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

0 commit comments

Comments
 (0)