Commit 522dfee1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Backport to 4.2 branch so that plasma doesn't crash anymore because of kalgebra's plasmoid.

svn path=/branches/KDE/4.2/kdeedu/kalgebra/; revision=961280
parent 03f4ccb5
......@@ -142,13 +142,13 @@ void KAlgebraPlasmoid::plasmoidFont(bool big, const QColor& c, bool bold)
void KAlgebraPlasmoid::simplify()
{
Expression res;
a.setExpression(Expression(m_input->text(), false));
Expression e(m_input->text(), false);
if(e.isCorrect())
a.setExpression(e);
if(a.isCorrect()) {
a.simplify();
res=*a.expression();
m_output->setText(res.toString());
m_output->setText(a.expression()->toString());
plasmoidFont(false, correctColor(), true);
} else
......
Supports Markdown
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