Skip to content
Snippets Groups Projects
Commit 9ef40556 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fixed bug introduced in recent parseargs changes - autodisplay not being

applied to overlays loaded on command line.
parent b0869287
No related branches found
No related tags found
No related merge requests found
...@@ -1480,11 +1480,12 @@ def applyOverlayArgs(args, overlayList, displayCtx, **kwargs): ...@@ -1480,11 +1480,12 @@ def applyOverlayArgs(args, overlayList, displayCtx, **kwargs):
# Figure out how many arguments # Figure out how many arguments
# were passed in for this overlay # were passed in for this overlay
allArgs = [v for k, v in vars(optArgs).items()] allArgs = [v for k, v in vars(optArgs).items()
if k != 'overlayType']
nArgs = len([a for a in allArgs if a is not None]) nArgs = len([a for a in allArgs if a is not None])
# If no arguments were passed, # If no arguments were passed,
# apply default display settings # apply default display settings
if nArgs == 0 and args.autoDisplay: if nArgs == 0 and args.autoDisplay:
autodisplay.autoDisplay(overlay, overlayList, displayCtx) autodisplay.autoDisplay(overlay, overlayList, displayCtx)
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment