diff python/storage.py @ 702:f0a897d7f3a5 dev

corrected bug when loading features with objects
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 20 Jul 2015 15:36:48 -0400
parents 957126bfb456
children f83d125d0c55
line wrap: on
line diff
--- a/python/storage.py	Fri Jul 17 18:00:00 2015 -0400
+++ b/python/storage.py	Mon Jul 20 15:36:48 2015 -0400
@@ -422,7 +422,7 @@
                 nFeatures = 0
                 for obj in objects:
                     nFeatures = max(nFeatures, max(obj.featureNumbers))
-                features = loadTrajectoriesFromSqlite(filename, 'feature', nFeatures)
+                features = loadTrajectoriesFromSqlite(filename, 'feature', nFeatures+1)
                 for obj in objects:
                     obj.setFeatures(features)