Salome HOME
Windows porting
[tools/medcoupling.git] / src / INTERP_KERNEL / InterpolationCU.txx
index f9528e1857062d5e157a4e2e47fe87e1fe09aeaa..8b4700d19808bb3517d3bfcd48ab97f9830ce6e1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2012  OPEN CASCADE
+// Copyright (C) 2009-2013  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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