]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #192 small fix
authorsbh <sergey.belash@opencascade.com>
Fri, 31 Oct 2014 11:44:59 +0000 (14:44 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 31 Oct 2014 11:44:59 +0000 (14:44 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index ab89d70ef16736b4b5d330f62b028bdb54a38e8c..96f8241f982737281d32416af063be67d589f251 100644 (file)
@@ -217,7 +217,7 @@ void ModuleBase_WidgetMultiSelector::setCurrentShapeType(const TopAbs_ShapeEnum
 {
   QString aShapeTypeName;
   for (int idx = 0; idx < myTypeCombo->count(); ++idx) {
-    aShapeTypeName = myTypeCombo->currentText();
+    aShapeTypeName = myTypeCombo->itemText(idx);
     TopAbs_ShapeEnum aRefType = ModuleBase_WidgetShapeSelector::shapeType(aShapeTypeName);
     if(aRefType == theShapeType && idx != myTypeCombo->currentIndex()) {
       myTypeCombo->setCurrentIndex(idx);