Commit 82fd07b5 authored by Fredrik Edemar's avatar Fredrik Edemar

* Disable the range check for polar functions as it was a stupid idea from the beginning :-(

* You can now load polar functions again without a freeze :-)
* Forgot to commit View.cpp in my last commit.

CCMAIL:kdmoeller@foni.net
CCMAIL:bmlmessmer@web.de

svn path=/trunk/kdeedu/kmplot/; revision=330105
parent e73cbc5d
......@@ -385,7 +385,7 @@ void View::plotfkt(int ix, QPainter *pDC)
}
else
{
if(mflg<=1 && (fktmode!='x' || (fktmode=='x' && y>=dmin && y<=dmax) ) ) //the check is for parametric functions
if(mflg<=1)
pDC->drawLine(p1, p2);
p1=p2;
mflg=0;
......
......@@ -158,14 +158,14 @@ void KEditPolar::accept()
return;
}
if ( tmp_fktext.dmin<View::xmin || tmp_fktext.dmax>View::xmax )
/*if ( tmp_fktext.dmin<View::xmin || tmp_fktext.dmax>View::xmax )
{
KMessageBox::error(this,i18n("Please insert a minimum and maximum range between %1 and %2").arg(View::xmin).arg(View::xmax) );
min->setFocus();
min->selectAll();
if( m_index == -1 ) m_parser->delfkt(index);
return;
}
}*/
}
else
{
......@@ -174,6 +174,9 @@ void KEditPolar::accept()
tmp_fktext.str_dmax = "0";
tmp_fktext.dmax = 0;
}
tmp_fktext.f1_mode = 0;
tmp_fktext.f2_mode = 0;
tmp_fktext.integral_mode = 0;
tmp_fktext.linewidth = kIntNumInputLineWidth->value();
tmp_fktext.color = kColorButtonColor->color().rgb();
tmp_fktext.use_slider = -1;
......
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