[Kst] extragear/graphics/kst/src/libkstmath
Eli Fidler
eli at staikos.net
Sat Jan 13 00:30:54 CET 2007
SVN commit 622780 by fidler:
set tag before legend when reading from .kst file
M +2 -3 kstimage.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/kstimage.cpp #622779:622780
@@ -33,7 +33,7 @@
static const QString& THEMATRIX = KGlobal::staticQString("THEMATRIX");
KstImage::KstImage(const QDomElement& e) : KstBaseCurve(e){
- QString in_tag, in_matrixName, in_paletteName;
+ QString in_matrixName, in_paletteName;
bool in_hasColorMap = false, in_hasContourMap = false;
double in_zLower = 0, in_zUpper = 0;
_autoThreshold = false;
@@ -44,7 +44,7 @@
QDomElement e = n.toElement(); // try to convert the node to an element.
if( !e.isNull() ) { // the node was really an element.
if (e.tagName() == "tag") {
- in_tag = e.text();
+ setTagName(KstObjectTag::fromString(e.text()));
} else if (e.tagName() == "matrixtag") {
in_matrixName = e.text();
} else if (e.tagName() == "legend") {
@@ -75,7 +75,6 @@
_inputMatrixLoadQueue.append(qMakePair(THEMATRIX, in_matrixName));
- setTagName(KstObjectTag::fromString(in_tag));
_typeString = i18n("Image");
_type = "Image";
_hasColorMap = in_hasColorMap;
More information about the Kst
mailing list