]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuShowNPoints.cxx
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuShowNPoints.cxx
index 06f5f68eb37be852c364b35b3799e20b72f25d84..c0edbf2b31ea9774d7f2db40028d46eec4f0ae51 100644 (file)
@@ -349,12 +349,12 @@ void WidgetShowNPoints::InsertPoint(int x, int y, int z, std::string label)//CFT
                                dTotal.push_back (res);         
                }
                //Gets the smallest distance 
-               int small = dTotal[0];
+               int smallTMP = dTotal[0];
                for (int j = 0; j < dTotal.size(); j++)
                {
-                         if(dTotal[j]<small)
+                         if(dTotal[j]<smallTMP)
                          {
-                                         small=dTotal[j];
+                                         smallTMP=dTotal[j];
                                                pos = j+1;
                          }
                }