Skip to content

Commit

Permalink
FEM: constraint VP, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Feb 25, 2020
1 parent 520cfd8 commit c8ea176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/Gui/TaskFemConstraint.cpp
Expand Up @@ -142,12 +142,12 @@ void TaskFemConstraint::setSelection(QListWidgetItem* item) {
std::string docName = ConstraintView->getObject()->getDocument()->getName();
// name of the item
std::string ItemName = item->text().toStdString();
// the object name is the part of the before the ':' of the item name
std::string delimiter = ":";
size_t pos = 0;
pos = ItemName.find(delimiter);
// the objName is the name piece before the ':' of the item name
std::string objName = ItemName.substr(0, pos);
// the subName is the name part tbehind the ':'
// the subName is the name piece behind the ':'
ItemName.erase(0, pos + delimiter.length());
// clear existing selection
Gui::Selection().clearSelection();
Expand Down

0 comments on commit c8ea176

Please sign in to comment.