# HG changeset patch # User Chris Cannam # Date 1225283852 0 # Node ID 6d45f77e63eec4d2470ae709f2071945410b8e90 # Parent 47b41ec34407b1764e4a2223b857b6eac7c6c4d0 * Ensure that region features are added even if they lack any values! diff -r 47b41ec34407 -r 6d45f77e63ee transform/FeatureExtractionModelTransformer.cpp --- a/transform/FeatureExtractionModelTransformer.cpp Tue Oct 28 18:06:06 2008 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Wed Oct 29 12:37:32 2008 +0000 @@ -686,7 +686,7 @@ RegionModel *model = getConformingOutput(); if (!model) return; - if (feature.hasDuration) { + if (feature.hasDuration && !feature.values.empty()) { for (int i = 0; i < feature.values.size(); ++i) {