Salome HOME
IPAL54049: Operations on multiple study objects are very long
[modules/geom.git] / src / MeasureGUI / MeasureGUI_AnnotationDlg.cxx
index 99ee4d658884c81e299d3a8c6bb3b27b6cc342d2..d7b06070f60d1b168b5449142793f140d86d3660 100755 (executable)
@@ -236,7 +236,7 @@ void MeasureGUI_AnnotationDlg::Init()
     myIsScreenFixed->setChecked( myAnnotationProperties.IsScreenFixed );
 
     int aSubShapeTypeIndex = -1;
-    int aTypesCount = aTypesCount = mySubShapeTypeCombo->count();
+    int aTypesCount = mySubShapeTypeCombo->count();
     for ( int i = 0; i < aTypesCount && aSubShapeTypeIndex < 0; i++ ) {
       int aType = mySubShapeTypeCombo->itemData( i ).toInt();
       if ( aType == myAnnotationProperties.ShapeType )
@@ -290,7 +290,7 @@ void MeasureGUI_AnnotationDlg::Init()
     myIsScreenFixed->setChecked( myAnnotationProperties.IsScreenFixed );
 
     int aSubShapeTypeIndex = -1;
-    int aTypesCount = aTypesCount = mySubShapeTypeCombo->count();
+    int aTypesCount = mySubShapeTypeCombo->count();
     for ( int i = 0; i < aTypesCount && aSubShapeTypeIndex < 0; i++ ) {
       int aType = mySubShapeTypeCombo->itemData( i ).toInt();
       if ( aType == myAnnotationProperties.ShapeType )