From: Eduardo DAVILA Date: Mon, 27 Jun 2022 09:40:41 +0000 (+0200) Subject: #3486 ShowNPoints bug insert first/last point X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3ad9eb09cf5788be582bccbfe062c14cfcc68ebf;p=creaMaracasVisu.git #3486 ShowNPoints bug insert first/last point --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx index f36297f..bb59af5 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ModelShowNPoints.cxx @@ -160,7 +160,7 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label) } - // In open contour case + // *************** Open contour case Start ******************* if (lstPointsX.size()==2) { double cx,cy,cz,r1,r2; @@ -181,7 +181,6 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label) pos=2; } } - } if (lstPointsX.size()>2) { @@ -207,6 +206,7 @@ int ModelShowNPoints::InsertPoint(int x, int y, int z, std::string label) } } } + // *************** Open contour case End ******************* std::vector::iterator it;