Commit 1fd8410f authored by David Saxton's avatar David Saxton

Fix crash in function tools dialog when no functions have been created yet.

svn path=/trunk/KDE/kdeedu/kmplot/; revision=561666
parent 1c544a5b
......@@ -266,6 +266,9 @@ void FunctionTools::findMaximum( const EquationPair & equation )
void FunctionTools::calculateArea( const EquationPair & equation )
{
if ( !equation.first.function() )
return;
IntegralDrawSettings s;
s.plot = equation.first;
s.dmin = m_widget->min->value();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment