Skip to content

Commit

Permalink
Update NearestPlugin.h to return correct names on mulitple results.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan committed Nov 11, 2014
1 parent e26ef17 commit 44036ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/NearestPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ template <class DataFacadeT> class NearestPlugin final : public BasePlugin
COORDINATE_PRECISION);
result.values["mapped coordinate"] = json_coordinate;
std::string temp_string;
facade->GetName(phantom_node_vector.front().name_id, temp_string);
facade->GetName(phantom_node_vector.at(i).name_id, temp_string);
result.values["name"] = temp_string;
results.values.push_back(result);
}
Expand Down

0 comments on commit 44036ae

Please sign in to comment.