Salome HOME
Copyright update 2021
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SelectionProxy.cxx
index c4ab63629eec39c53ed1353b70e00c33f8dbccf3..632350ef9f96c52d72454e351bd9b5a5bd1398bf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -101,7 +101,7 @@ SMESH::SelectionProxy::SelectionProxy( const SelectionProxy& other )
 void SMESH::SelectionProxy::init()
 {
   if ( myIO.IsNull() )
-    myIO = new SALOME_InteractiveObject(); // create dummy IO to avoid crashes when accesing it
+    myIO = new SALOME_InteractiveObject(); // create dummy IO to avoid crashes when accessing it
 
   if ( !CORBA::is_nil( myObject ) )
   {
@@ -754,7 +754,7 @@ bool SMESH::SelectionProxy::perFaceConnectivity( int id, Connectivity& connectiv
           SMESH::long_array_var nodes = mesh->GetElemFaceNodes( id, iF );
           for ( CORBA::ULong iN = 0; iN < nodes->length(); ++iN )
           {
-            connectivity[ iF ] << nodes[iN];
+            connectivity[ iF+1 ] << nodes[iN];
             nodeSet << nodes[iN];
           }
         }
@@ -1376,7 +1376,7 @@ void SMESH::MedInfo::setVersion( uint major, uint minor, uint release )
 ////////////////////////////////////////////////////////////////////////////////
 
 /*!
-  \brief Contructor. Creates invalid position.
+  \brief Constructor. Creates invalid position.
 */
 SMESH::Position::Position():
   myShapeId(-1), myShapeType(-1), myU(0), myV(0), myHasU(false), myHasV(false)