]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0052956: Shape Statistics on Group of edges problem
authorskv <skv@opencascade.com>
Tue, 29 Dec 2015 10:20:06 +0000 (13:20 +0300)
committerskv <skv@opencascade.com>
Tue, 29 Dec 2015 10:20:06 +0000 (13:20 +0300)
src/MeasureGUI/MeasureGUI_ShapeStatisticsDlg.cxx

index 9387cf4a873273d1aead1510eed7e378b6611c5e..681c0bab5e453c872988efd93d0866768aa9c297 100644 (file)
@@ -311,9 +311,9 @@ void MeasureGUI_ShapeStatisticsDlg::updateTypes( QList<GEOM::GeomObjPtr> theShap
     if ( hasEdges != 0 )
       hasEdges = aShOp->NumberOfSubShapes( aShapePtr.get(), TopAbs_EDGE ) > 0;
     if ( hasFaces != 0 )
-      hasEdges = aShOp->NumberOfSubShapes( aShapePtr.get(), TopAbs_FACE ) > 0;
+      hasFaces = aShOp->NumberOfSubShapes( aShapePtr.get(), TopAbs_FACE ) > 0;
     if ( hasSolids != 0 )
-      hasEdges = aShOp->NumberOfSubShapes( aShapePtr.get(), TopAbs_SOLID ) > 0;
+      hasSolids = aShOp->NumberOfSubShapes( aShapePtr.get(), TopAbs_SOLID ) > 0;
   }
   fillTypes( hasEdges, hasFaces, hasSolids );
 }