Ticket #9443 (assigned)

Opened 6 years ago

Last modified 5 years ago

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

comment:1 Changed 6 years ago by Dan Nixon

  • Owner changed from Anyone to Dan Nixon
  • Status changed from new to assigned

comment:2 Changed 6 years ago by Dan Nixon

  • Status changed from assigned to inprogress

comment:3 Changed 6 years ago by Dan Nixon

  • Status changed from inprogress to assigned

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10286

Note: See TracTickets for help on using tickets.