1
0
Fork 0

Take care of primitive shapes in LegendReader.

This commit is contained in:
Max Neunhoeffer 2014-06-12 16:04:32 +02:00
parent 131da49f60
commit 369ea69d28
1 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,11 @@ namespace triagens {
}
TRI_shape_t const* lookupShapeIdMethod (TRI_shape_sid_t const sid) {
// Is it a builtin basic one?
if (sid < TRI_FirstCustomShapeIdShaper()) {
return TRI_LookupSidBasicShapeShaper(sid);
}
// binary search in Shapes
TRI_shape_size_t low = 0;
TRI_shape_size_t high = _numberShapes;