[Kst] extragear/graphics/kst/src/libkstmath
Eli Fidler
eli at staikos.net
Wed Jul 12 22:23:58 CEST 2006
SVN commit 561646 by fidler:
must writeLock the new Scalars before adding
reviewed by George
M +3 -0 kstplugin.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/kstplugin.cpp #561645:561646
@@ -626,6 +626,7 @@
// FIXME: KstPlugin should not know about fit scalars!!
void KstPlugin::createFitScalars() {
+ // Assumes that this is called with a write lock in place on this object
if (_plugin->data()._isFit && _outputVectors.contains("Parameters")) {
KstVectorPtr vectorParam = _outputVectors["Parameters"];
if (vectorParam) {
@@ -640,7 +641,9 @@
if (!_outputScalars.contains(paramName)) {
QString scalarName = i18n("%1-%2").arg(tagName()).arg(paramName);
KstScalarPtr s = new KstScalar(scalarName, this, scalarValue);
+ s->KstObject::writeLock();
_outputScalars.insert(paramName, s);
+ ++_outScalarCnt;
} else {
_outputScalars[paramName]->setValue(scalarValue);
}
More information about the Kst
mailing list