Salome HOME
First stable version after merging with V3_2_2
[modules/smesh.git] / src / SMDS / SMDS_MeshElement.hxx
index 42e0db2844c62f6897c1269b23984829eff753c8..71eb869a1e5aed143d9f4db1e97beca421e066db 100644 (file)
@@ -93,7 +93,7 @@ public:
     * \retval int - valid node index
    */
   int WrappedIndex(const int ind) const {
-    if ( ind < 0 ) return -( ind % NbNodes());
+    if ( ind < 0 ) return NbNodes() + ind % NbNodes();
     if ( ind >= NbNodes() ) return ind % NbNodes();
     return ind;
   }