From: sbh Date: Fri, 31 Oct 2014 11:44:59 +0000 (+0300) Subject: Issue #192 small fix X-Git-Tag: V_0.5~50^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b8bbd621999825f92f8dc5f094e29b8d392ed5a;p=modules%2Fshaper.git Issue #192 small fix --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index ab89d70ef..96f8241f9 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -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);