From 369ea69d28cde99d3cf5fc79d91f2b7e251db5f6 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Thu, 12 Jun 2014 16:04:32 +0200 Subject: [PATCH] Take care of primitive shapes in LegendReader. --- lib/ShapedJson/Legends.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ShapedJson/Legends.h b/lib/ShapedJson/Legends.h index 488825db12..5d423cf64f 100644 --- a/lib/ShapedJson/Legends.h +++ b/lib/ShapedJson/Legends.h @@ -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;