[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Mon Nov 21 21:11:54 CET 2005
SVN commit 482115 by staikos:
- fix merge error -> locking got reversed
- only lookup in the map twice instead of three times
M +4 -4 kstplugin.cpp
--- trunk/extragear/graphics/kst/kst/kstplugin.cpp #482114:482115
@@ -624,8 +624,8 @@
if (vectorParam) {
QString paramName;
int i = 0;
- int length = _outputVectors["Parameters"]->length();
-
+ int length = vectorParam->length();
+
for (paramName = _plugin->parameterName(i);
!paramName.isEmpty() && i < length;
paramName = _plugin->parameterName(++i)) {
@@ -633,9 +633,9 @@
if (!_outputScalars.contains(paramName)) {
QString scalarName = i18n("%1-%2").arg(tagName()).arg(paramName);
KstScalarPtr s = new KstScalar(scalarName, scalarValue);
+ s->writeLock();
+ s->setProvider(this);
s->writeUnlock();
- s->setProvider(this);
- s->writeLock();
_outputScalars.insert(paramName, s);
} else {
_outputScalars[paramName]->setValue(scalarValue);
More information about the Kst
mailing list