Salome HOME
Fix for bug IPAL10431 ( It is impossible create/edit mesh using GUI ).
authormzn <mzn@opencascade.com>
Tue, 1 Nov 2005 13:34:43 +0000 (13:34 +0000)
committermzn <mzn@opencascade.com>
Tue, 1 Nov 2005 13:34:43 +0000 (13:34 +0000)
src/SMESHGUI/SMESHGUI_SelectionOp.cxx

index 6992319581dfa5c7bfbf82eb7c29229d10160c5e..ec170a047a62f69df7d969b28b4ecc00a1cafe90 100644 (file)
@@ -403,7 +403,7 @@ void SMESHGUI_SelectionOp::selected( QStringList& names,
   {
     selIndices.Clear();
     selectionMgr()->GetIndexes( anIt.Value(), selIndices );
   {
     selIndices.Clear();
     selectionMgr()->GetIndexes( anIt.Value(), selIndices );
-    if( selIndices.Extent()==0 )
+    if( selIndices.Extent() > 0 )
     {
       QString id_str = QString( "%1%2%3" ).arg( anIt.Value()->getEntry() ).arg( idChar() ), current_id_str;
       for( int i=1, n=selIndices.Extent(); i<=n; i++ )
     {
       QString id_str = QString( "%1%2%3" ).arg( anIt.Value()->getEntry() ).arg( idChar() ), current_id_str;
       for( int i=1, n=selIndices.Extent(); i<=n; i++ )