Skip to content

Commit 02da8e2

Browse files
authored
PointStampedDisplay: Ignore incoming messages if disabled (#1036)
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
1 parent bf97799 commit 02da8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rviz_default_plugins/include/rviz_default_plugins/displays/image/image_transport_display.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class ImageTransportDisplay : public rviz_common::_RosTopicDisplay
168168
*/
169169
void incomingMessage(const typename MessageType::ConstSharedPtr msg)
170170
{
171-
if (!msg) {
171+
if (!msg || !isEnabled()) {
172172
return;
173173
}
174174

0 commit comments

Comments
 (0)