changeset 371:098c568dc76b

* Fix #1894369 1.2pre5 crashes on copying data
author Chris Cannam
date Fri, 15 Feb 2008 15:15:29 +0000
parents 8ebc2ce2a210
children 67f82da3d29c
files layer/TimeValueLayer.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;