Skip to content

Commit

Permalink
reverse condition for demangling type name
Browse files Browse the repository at this point in the history
Signed-off-by: Miaofei <miaofei@amazon.com>
  • Loading branch information
mm318 committed Dec 28, 2019
1 parent 642d9ed commit 38dec2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_get_topic_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ _set_rmw_topic_info(
}
// set topic type
std::string type_name =
no_mangle ? _demangle_if_ros_type(topic_data.topic_type) : topic_data.topic_type;
no_mangle ? topic_data.topic_type : _demangle_if_ros_type(topic_data.topic_type);
ret = rmw_topic_info_set_topic_type(topic_info, type_name.c_str(), allocator);
if (ret != RMW_RET_OK) {
return ret;
Expand Down

0 comments on commit 38dec2a

Please sign in to comment.