From 7ef206844baea929e593e70a73a0d975fa647046 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Fri, 29 Oct 2021 09:58:31 +0200 Subject: [PATCH] Fix assertion in billboard_line.cpp Fixes #1674 --- src/rviz/ogre_helpers/billboard_line.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/ogre_helpers/billboard_line.cpp b/src/rviz/ogre_helpers/billboard_line.cpp index 48408859bc..4dec03eb1a 100644 --- a/src/rviz/ogre_helpers/billboard_line.cpp +++ b/src/rviz/ogre_helpers/billboard_line.cpp @@ -225,7 +225,7 @@ void BillboardLine::addPoint(const Ogre::Vector3& point, const Ogre::ColourValue ++num_elements_[current_line_]; ++total_elements_; - ROS_ASSERT(num_elements_[current_line_] < max_points_per_line_); + ROS_ASSERT(num_elements_[current_line_] <= max_points_per_line_); Ogre::BillboardChain::Element e; e.position = point;