diff plugins/SegmenterPlugin.cpp @ 214:23b2a2f93c5a

Merge from branch MSVC
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 27 Apr 2018 15:48:50 +0100
parents af6a5ba00a8f
children
line wrap: on
line diff
--- a/plugins/SegmenterPlugin.cpp	Fri Sep 30 19:04:06 2016 +0100
+++ b/plugins/SegmenterPlugin.cpp	Fri Apr 27 15:48:50 2018 +0100
@@ -198,9 +198,9 @@
     }
 
     if (param == "featureType") {
-        if (featureType != feature_types(value)) // feature type changed, create a new segmenter
-        {
-            featureType = feature_types(value);
+		int nval = int(value + 0.5);
+        if (featureType != feature_types(nval)) { // feature type changed, create a new segmenter
+            featureType = feature_types(nval);
             makeSegmenter();
         }
         return;