Ticket #9443 (assigned)
WorkspaceProperty isDefault Issue
Reported by: | Owen Arnold | Owned by: | Dan Nixon |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | Framework | Keywords: | |
Cc: | martyn.gigg@… | Blocked By: | |
Blocking: | Tester: |
Description
If you have an algorithm with an optional WorkspaceProperty, and if you run that algorithm in child mode, then calling isDefault on your property will not behave as you expect it to. Even if you have set the property, isDefault will return true.
Looking at the implementation:
bool isDefault() const { return m_initialWSName == m_workspaceName; }
It's using the workspace names for comparision. If the workspaces are outside the ADS, then their names are not set, and so you are comparing two empty strings (returns True).
Change History
Note: See
TracTickets for help on using
tickets.