Mercurial > hg > audiodb
diff audioDB.cpp @ 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 | 53179ebec1f7 |
children | caf4ec67ddaf |
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;