Skip to content

Commit

Permalink
Merge pull request #30 from smnrgrs/multiple_partition_crash
Browse files Browse the repository at this point in the history
Prevent crash when opening new tab for topic with multiple partitions
  • Loading branch information
jrw972 authored Mar 1, 2024
2 parents 825e384 + 953b722 commit 39c3857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void DDSMonitorMainWindow::on_topicTree_itemClicked(QTreeWidgetItem* item, int)
if (!selectedPartition.isEmpty())
{
partitionInfo.name.length(1);
partitionInfo.name[0] = selectedPartition.toUtf8().data();
partitionInfo.name[0] = selectedPartition.toStdString().c_str();
}

topicInfo->subQos.partition = partitionInfo;
Expand Down

0 comments on commit 39c3857

Please sign in to comment.