Skip to content

Commit

Permalink
Merge branch 'feature/2480_show_required_props_and_default_vals_in_al…
Browse files Browse the repository at this point in the history
…g_diags' into develop
  • Loading branch information
PeterParker committed Mar 10, 2014
2 parents 1470a22 + 83399d5 commit ab251bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Code/Mantid/MantidQt/API/src/PropertyWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace // anonymous
if( defaultValue == "-0" || defaultValue == "-0.0" )
return "0";

const auto number = stringToNumber(defaultValue);
const boost::optional<double> number = stringToNumber(defaultValue);
if( !number )
return defaultValue;

Expand All @@ -134,8 +134,7 @@ namespace // anonymous
if( defaultValue.length() > 5 )
{
std::stringstream roundedValue;
const double rounded = *number;
roundedValue << rounded;
roundedValue << *number;
return roundedValue.str();
}

Expand Down

0 comments on commit ab251bb

Please sign in to comment.