Summary: | Update problem with equations... | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Netterfield <netterfield> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Netterfield
2005-12-04 07:04:53 UTC
SVN commit 485536 by staikos: don't update the counter twice because it never updates at all then BUG: 117641 M +5 -6 kstsvector.cpp --- trunk/extragear/graphics/kst/kst/kstsvector.cpp #485535:485536 @@ -15,6 +15,7 @@ * * ***************************************************************************/ #include "kstsvector.h" +#include "ksdebug.h" #include <qstylesheet.h> KstSVector::KstSVector(const QDomElement &e) : KstVector() { @@ -44,12 +45,13 @@ changeRange( in_x0, in_x1, in_n ); } -KstSVector::KstSVector(double x0, double x1, int n, const QString &tag) : KstVector(tag, n) { +KstSVector::KstSVector(double x0, double x1, int n, const QString &tag) : KstVector(tag, n) { _saveable = true; changeRange( x0, x1, n ); } + void KstSVector::save(QTextStream &ts, const QString& indent, bool saveAbsolutePosition) { Q_UNUSED( saveAbsolutePosition ) ts << indent << "<svector>" << endl; @@ -62,6 +64,7 @@ ts << indent << "</svector>" << endl; } + void KstSVector::changeRange(double x0, double x1, int n) { if (n < 2) { n = 2; @@ -90,13 +93,9 @@ setDirty(false); } + KstObject::UpdateType KstSVector::update(int update_counter) { bool force = dirty(); - - if (KstObject::checkUpdateCounter(update_counter) && !force) { - return lastUpdateResult(); - } - KstObject::UpdateType baseRC = KstVector::update(update_counter); if (force) { baseRC = UPDATE; |