[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 16 01:08:45 CET 2005
CVS commit by staikos:
Only update when dependencies update or when forced to update
M +8 -2 ksthistogram.cpp 1.52
--- kdeextragear-2/kst/kst/ksthistogram.cpp #1.51:1.52
@@ -157,4 +157,5 @@ KstObject::UpdateType KstHistogram::upda
double y = 0.0;
double MaxY = 0.0;
+ bool force = false;
if (KstObject::checkUpdateCounter(update_counter)) {
@@ -162,6 +163,11 @@ KstObject::UpdateType KstHistogram::upda
}
- if (update_counter > 0) {
- _inputVectors[RAWVECTOR]->update(update_counter);
+ if (update_counter <= 0) {
+ force = true;
+ }
+
+ bool xUpdated = KstObject::UPDATE == _inputVectors[RAWVECTOR]->update(update_counter);
+ if (!xUpdated && !force) {
+ return setLastUpdateResult(KstObject::NO_CHANGE);
}
More information about the Kst
mailing list