Skip to content

Commit

Permalink
[MSA] Fix SRDF Initialization Bug / Copy Paste Error
Browse files Browse the repository at this point in the history
  • Loading branch information
DLu committed Jun 20, 2022
1 parent bd49e18 commit 7d0f9f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ void DoubleListWidget::previewSelected(const QList<QTableWidgetItem*>& selected)

std::vector<std::string> DoubleListWidget::getSelectedValues() const
{
std::vector<std::string> values(selected_data_table_->rowCount());
std::vector<std::string> values;
values.reserve(selected_data_table_->rowCount());
for (int i = 0; i < selected_data_table_->rowCount(); ++i)
{
values.push_back(selected_data_table_->item(i, 0)->text().toStdString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void PlanningGroupsWidget::saveJointsScreen()
// ******************************************************************************************
void PlanningGroupsWidget::saveLinksScreen()
{
setup_step_.setJoints(current_edit_group_, links_widget_->getSelectedValues());
setup_step_.setLinks(current_edit_group_, links_widget_->getSelectedValues());

// Switch to main screen
showMainScreen();
Expand Down

0 comments on commit 7d0f9f0

Please sign in to comment.