changeset 89:28211402b9c6

Fix for bug from test 0014 (WS point query result list)
author mas01cr
date Tue, 02 Oct 2007 15:36:22 +0000
parents 7e3483e53c3b
children 52db1622dffe
files audioDB.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioDB.cpp	Tue Oct 02 15:35:10 2007 +0000
+++ b/audioDB.cpp	Tue Oct 02 15:36:22 2007 +0000
@@ -1114,7 +1114,13 @@
     }
   }
   else{ // Process Web Services Query
-    int listLen = pointNN;
+    int listLen;
+    for(k = 0; k < pointNN; k++) {
+      if(distances[k] == -DBL_MAX)
+        break;
+    }
+    listLen = k;
+
     adbQueryResult->__sizeRlist=listLen;
     adbQueryResult->__sizeDist=listLen;
     adbQueryResult->__sizeQpos=listLen;