commit 40e7a5c0bbfd98210481297a6ab2649bb2f6c966
Author: dprunier <dominique.prunier@watch4net.com>
Date:   Mon Jan 23 13:31:05 2012

    use dictionary instead of text::selectStrings in category::selectStrings

diff --git a/src/category.cpp b/src/category.cpp
index ffab24e..34528e7 100644
--- a/src/category.cpp
+++ b/src/category.cpp
@@ -127,7 +127,16 @@ ibis::category::selectStrings(const ibis::bitvector& mask) const {
 	return new std::vector<std::string>(mask.cnt(), dic[1]);
     }
 
-    return ibis::text::selectStrings(mask);
+    std::auto_ptr<ibis::array_t<uint32_t> > keys(selectUInts(mask));
+    if (keys.get() == 0) {
+	return 0;
+    }
+
+    std::vector<std::string>* strings = new std::vector<std::string>();
+    for (int i = 0; i < keys->size(); ++i) {
+	strings->push_back(dic[(*keys)[i]]);
+    }
+    return strings;
 } // ibis::category::selectStrings
 
 /// A function to read the dictionary and load the index.  This is a const
