Commit cf2ef9b6 authored by Fredrik Edemar's avatar Fredrik Edemar

Polar plots can be loaded again

CCMAIL:kdmoeller@foni.net

svn path=/trunk/kdeedu/kmplot/; revision=312924
parent aa59f257
......@@ -110,6 +110,8 @@ void KEditPolar::accept()
m_parser->fktext[ index ].linewidth = kIntNumInputLineWidth->value();
m_parser->fktext[ index ].color = kColorButtonColor->color().rgb();
m_parser->fktext[ index ].anti_mode = 0;
m_parser->fktext[ index ].anti_use_precision = false;
// call inherited method
QEditPolar::accept();
......
......@@ -112,7 +112,7 @@ void KmPlotIO::save( XParser *parser, const QString filename )
tag.setAttribute( "visible-2nd-deriv", parser->fktext[ ix ].f2_mode );
tag.setAttribute( "deriv2nd-color", QColor( parser->fktext[ ix ].f2_color ).name() );
tag.setAttribute( "deriv2nd-width", parser->fktext[ ix ].f2_linewidth );
tag.setAttribute( "anti-deriv", parser->fktext[ ix ].anti_mode );
tag.setAttribute( "visible-deriv", parser->fktext[ ix ].anti_mode );
tag.setAttribute( "anti-color", QColor( parser->fktext[ ix ].anti_color ).name() );
tag.setAttribute( "anti-width", parser->fktext[ ix ].anti_linewidth );
tag.setAttribute( "anti-use-precision", parser->fktext[ ix ].anti_use_precision );
......@@ -242,7 +242,7 @@ void KmPlotIO::parseFunction( XParser *parser, const QDomElement & n )
parser->fktext[ ix ].f2_mode = n.attribute( "visible-2nd-deriv" ).toInt();
parser->fktext[ ix ].f1_color = QColor(n.attribute( "deriv-color" )).rgb();
parser->fktext[ ix ].anti_color = QColor(n.attribute( "anti-color" )).rgb();
parser->fktext[ ix ].anti_mode = n.attribute( "anti-deriv" ).toInt();
parser->fktext[ ix ].anti_mode = n.attribute( "visible-deriv" ).toInt();
parser->fktext[ ix ].f1_linewidth = n.attribute( "deriv-width" ).toInt();
parser->fktext[ ix ].f1_mode = n.attribute( "visible-deriv" ).toInt();
parser->fktext[ ix ].color = QColor( n.attribute( "color" ) ).rgb();
......
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