[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Sun Dec 4 21:31:54 CET 2005
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;
More information about the Kst
mailing list