Skip to content

Commit

Permalink
Fixed the bug with SmoothNeighbours happening when there are no suita…
Browse files Browse the repository at this point in the history
…ble workspaces.

Refs #7720
(cherry picked from commit fc18aba)
  • Loading branch information
arturbekasov authored and stuartcampbell committed Aug 13, 2013
1 parent 5871b01 commit 22a794d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ void SmoothNeighboursDialog::inputWorkspaceChanged(const QString& pName)
// Workspace groups are NOT returned by IWP->getWorkspace(), as they are not MatrixWorkspace,
// so check the ADS for the GroupWorkspace with the same name
std::string inWsValue = this->getAlgorithm()->getPointerToProperty(inWsName)->value();

// If it really doesn't exist, don't do anything
if(!AnalysisDataService::Instance().doesExist(inWsValue))
return;

WorkspaceGroup_sptr inGroupWs = AnalysisDataService::Instance().retrieveWS<WorkspaceGroup>(inWsValue);

if(inGroupWs)
Expand Down

0 comments on commit 22a794d

Please sign in to comment.