diff --git a/Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/IdentityMultiMapping.h b/Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/IdentityMultiMapping.h index 8f5b998cd95..2ebb82cf83b 100644 --- a/Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/IdentityMultiMapping.h +++ b/Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/IdentityMultiMapping.h @@ -30,7 +30,7 @@ namespace sofa::component::mapping::linear { -/// concatanate several entire mechanical states together +/// Concatenate several mechanical states together template class IdentityMultiMapping : public LinearMultiMapping { diff --git a/Sofa/GUI/Qt/src/sofa/gui/qt/DisplayFlagsDataWidget.cpp b/Sofa/GUI/Qt/src/sofa/gui/qt/DisplayFlagsDataWidget.cpp index b2b609088c2..e09f283ef12 100644 --- a/Sofa/GUI/Qt/src/sofa/gui/qt/DisplayFlagsDataWidget.cpp +++ b/Sofa/GUI/Qt/src/sofa/gui/qt/DisplayFlagsDataWidget.cpp @@ -98,7 +98,8 @@ DisplayFlagWidget::DisplayFlagWidget(QWidget* parent, const char* name, Qt::Win itemShowFlag[NORMALS] = new QTreeWidgetItem(itemShowOptions, itemShowFlag[WIREFRAME]); this->setTreeWidgetCheckable(itemShowFlag[NORMALS], "Normals"); this->addTopLevelItem(itemShowAll); - itemShowAll->addChild(itemShowVisual); itemShowAll->setExpanded(true); + itemShowAll->setExpanded(true); + itemShowAll->addChild(itemShowVisual); itemShowVisual->addChild(itemShowFlag[VISUALMODELS]); itemShowAll->addChild(itemShowBehavior); itemShowBehavior->addChild(itemShowFlag[BEHAVIORMODELS]); @@ -112,7 +113,8 @@ DisplayFlagWidget::DisplayFlagWidget(QWidget* parent, const char* name, Qt::Win itemShowMapping->addChild(itemShowFlag[MAPPINGS]); itemShowMapping->addChild(itemShowFlag[MECHANICALMAPPINGS]); - this->addTopLevelItem(itemShowOptions); itemShowOptions->setExpanded(true); + this->addTopLevelItem(itemShowOptions); + itemShowOptions->setExpanded(true); itemShowOptions->addChild(itemShowFlag[RENDERING]); itemShowOptions->addChild(itemShowFlag[WIREFRAME]); itemShowOptions->addChild(itemShowFlag[NORMALS]);