[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Aug 5 23:12:03 CEST 2004

CVS commit by staikos: 

Fix the ugly, ugly, ugly locking bug discovered by Barth.  It goes like this:
DataObject contains maps, and locking data object locks all objects inside its
maps.  set*Vector() methods in KstEquationCurve remove an item from the map
and add a new one.  the old one gets deleted (in the best case -- in the worst
case it doesn't and we have a permanently locked object) and then the new one
is inserted - unlocked.  Therefore when we unlock() the dataobject, it tries
to unlock the new vector, which isn't locked.  This fix hacks around the
problem, but we need a real solution because this can get really messy really

  M +5 -17     ksteqdialog_i.cpp   1.58
  M +52 -37    kstequationcurve.cpp   1.59
  M +10 -15    kstequationcurve.h   1.28
  M +14 -14    kstvector.cpp   1.75
  M +4 -4      kstvector.h   1.50

More information about the Kst mailing list