[Kst] branches/work/kst/hierarchy/kst/src/libkst
Eli Fidler
eli at staikos.net
Thu Dec 7 19:09:38 CET 2006
SVN commit 611332 by fidler:
don't set the tag if it's the same
M +4 -2 kstmatrix.cpp
M +1 -1 kstmatrix.h
--- branches/work/kst/hierarchy/kst/src/libkst/kstmatrix.cpp #611331:611332
@@ -527,8 +527,10 @@
}
-void KstMatrix::change(KstObjectTag tag, uint nX, uint nY, double minX, double minY, double stepX, double stepY) {
- setTagName(tag);
+void KstMatrix::change(const KstObjectTag& newTag, uint nX, uint nY, double minX, double minY, double stepX, double stepY) {
+ if (tag() != newTag) {
+ setTagName(newTag);
+ }
_nX = nX;
_nY = nY;
_stepX = stepX;
--- branches/work/kst/hierarchy/kst/src/libkst/kstmatrix.h #611331:611332
@@ -39,7 +39,7 @@
~KstMatrix();
public:
- void change(KstObjectTag tag, uint nX, uint nY, double minX, double minY,
+ void change(const KstObjectTag& tag, uint nX, uint nY, double minX, double minY,
double stepX, double stepY);
// Return the sample count (x times y) of the matrix
More information about the Kst
mailing list