Skip to content

Commit

Permalink
Refs #4814. Return value in a more correct manner.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 21, 2012
1 parent dfae42f commit bfdf820
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/Geometry/src/Instrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,10 @@ namespace Mantid
return false;
// Access the parameter map directly.
Parameter_sptr maskedParam = m_map->get(det, "masked");
if (!maskedParam)
return false;
// If the parameter is defined, then yes, it is masked.
return bool(maskedParam);
return maskedParam->value<bool>();
}

//--------------------------------------------------------------------------
Expand Down

0 comments on commit bfdf820

Please sign in to comment.