Skip to content

Commit

Permalink
Re #5261. Last commit didn't fix it completely. This one should.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed May 4, 2012
1 parent 38e17f8 commit b2aebb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/MantidWidgets/src/FunctionBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ Mantid::API::IFunction_sptr FunctionBrowser::getFunction(QtProperty* prop)
}
catch(std::exception& e)
{
if ( attName == "Formula" && attr.asString().empty() )
if ( attName == "Formula" && attr.asString().empty() && children.size() == 1 )
{
fun->setAttributeValue("Formula","x");
}
Expand Down

0 comments on commit b2aebb5

Please sign in to comment.