Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 371:098c568dc76b
* Fix #1894369 1.2pre5 crashes on copying data
author | Chris Cannam |
---|---|
date | Fri, 15 Feb 2008 15:15:29 +0000 |
parents | d58701996fae |
children | 67f82da3d29c |
line wrap: on
line diff
--- 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<SparseTimeValueModel::Point> - (newPoint, i == points.begin() ? 0 : &prevPoint); + (newPoint, (i == points.begin()) ? 0 : &prevPoint); } prevPoint = newPoint;