Salome HOME
Merge from V6_main 13/12/2012
[modules/med.git] / src / INTERP_KERNEL / InterpolationCU.txx
index f9528e1857062d5e157a4e2e47fe87e1fe09aeaa..af2cf5fae4256fe33d9da473763fb394524edfbb 100644 (file)
@@ -148,7 +148,7 @@ namespace INTERP_KERNEL
         bool doItersect = true;
         for ( int j = 0; j < dim && doItersect; ++j )
           doItersect =
-            bb[j*2]   < src_coords[j][ src_nb_coords[0]-1 ] - eps &&
+            bb[j*2]   < src_coords[j][ src_nb_coords[j]-1 ] - eps &&
             bb[j*2+1] > src_coords[j][0] + eps;
         if ( !doItersect )
           continue; // no intersection