[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 30 01:19:02 CEST 2005
CVS commit by staikos:
fix curve hints for equations: they were going stale
M +1 -0 kstcurvehint.cpp 1.4
M +6 -5 kstequation.cpp 1.33
M +2 -0 kstequation.h 1.9
--- kdeextragear-2/kst/kst/kstequation.cpp #1.32:1.33
@@ -162,10 +162,11 @@ void KstEquation::commonConstructor(cons
setEquation(in_equation);
+}
- if (_xVector == _inputVectors.end()) {
- _curveHints->append(new KstCurveHint(i18n("Equation Curve"), (*_inputVectorLoadQueue.begin()).second, (*_yVector)->tagName()));
- } else {
+
+const KstCurveHintList *KstEquation::curveHints() const {
+ _curveHints->clear();
_curveHints->append(new KstCurveHint(i18n("Equation Curve"), (*_xVector)->tagName(), (*_yVector)->tagName()));
- }
+ return _curveHints;
}
--- kdeextragear-2/kst/kst/kstequation.h #1.8:1.9
@@ -69,4 +69,6 @@ class KstEquation : public KstDataObject
virtual bool uses(KstObjectPtr p) const;
+ const KstCurveHintList *curveHints() const;
+
private:
QString _equation;
--- kdeextragear-2/kst/kst/kstcurvehint.cpp #1.3:1.4
@@ -56,4 +56,5 @@ KstBaseCurvePtr KstCurveHint::makeCurve(
KstVectorPtr y = yVector();
if (!x || !y) {
+ kdDebug() << "Couldn't find either " << _xVectorName << " or " << _yVectorName << endl;
return 0L;
}
More information about the Kst
mailing list