# HG changeset patch # User Chris Cannam # Date 1203088529 0 # Node ID 098c568dc76b0e3cffe2250e162f9c9d9e78dcba # Parent 8ebc2ce2a210514aa880ce73aa959fc25f3440d1 * Fix #1894369 1.2pre5 crashes on copying data diff -r 8ebc2ce2a210 -r 098c568dc76b layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Wed Feb 13 13:49:33 2008 +0000 +++ b/layer/TimeValueLayer.cpp Fri Feb 15 15:15:29 2008 +0000 @@ -1338,7 +1338,7 @@ } } - static SparseTimeValueModel::Point prevPoint(0); + SparseTimeValueModel::Point prevPoint = 0; for (Clipboard::PointList::const_iterator i = points.begin(); i != points.end(); ++i) { @@ -1373,7 +1373,7 @@ newPoint.value = i->getValue(); } else { labeller.setValue - (newPoint, i == points.begin() ? 0 : &prevPoint); + (newPoint, (i == points.begin()) ? 0 : &prevPoint); } prevPoint = newPoint;