Skip to content

Commit

Permalink
Fixup #1275: correctly detect repeated marker occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn authored and rhaschke committed Sep 2, 2019
1 parent 6c08d7e commit 325e74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz/default_plugin/marker_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ bool checkMarkerArrayMsg(const visualization_msgs::MarkerArray& array, MarkerDis

MarkerID current_id(marker.ns, marker.id);
std::vector<MarkerID>::iterator search = std::lower_bound(marker_ids.begin(), marker_ids.end(), current_id);
if (search != marker_ids.end())
if (search != marker_ids.end() && *search == current_id)
{
addSeparatorIfRequired(ss);
ss << "Found '" << marker.ns.c_str() << "/" << marker.id << "' multiple times";
Expand Down

0 comments on commit 325e74c

Please sign in to comment.