]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/AutoControlPoints.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / AutoControlPoints.cxx
index c17c1c5a2d0ac25939cb472ed0d3d6a79b443141..0e14ca465fecdd1623fab43b109aac018cf11641 100644 (file)
@@ -322,7 +322,7 @@ void AutoControlPoints::InterCircle(std::vector<double>*InX, std::vector<double>
                _circleY.push_back(tempY[i]);
                m1 = Slope(tempX[i],tempY[i],cx,cy);//slope of the radius
                min = 9999;
-               for(j=0; j<InX->size(); j++)
+               for(j=0; j<(int)(InX->size()); j++)
                {
                        jj = (j+1)%(InX->size());
                        m2 = Slope((*InX)[j],(*InY)[j],(*InX)[jj],(*InY)[jj]);//Slope of the vector between the adjacent points
@@ -893,7 +893,7 @@ printf("\n XMAX = %f, YMAX = %f, XX = %f, YY = %f",xmax,ymax,xx,yy);
                if(posA<posB)
                {
                        posA = posB+1;
-                       if(posB = _controlpointsX.size()-1)  // ?!? // JPRx     // ?!? EED
+                       if( ( posB = _controlpointsX.size()-1) )  // ?!? // JPRx     // ?!? EED
                        {
                                posA = 0;
                        }