X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepFill%2FBRepFill_Pipe.cxx;h=2b4d5b990dd27194b7c991e42b9f78f23cad1d6b;hp=0016db44a51ee479d12871b567f9d0dc6a287416;hb=7566ccf330535dc6ef56894676e7900de3f14c5d;hpb=a940de41953654be89555bdd2096f91f465aa6b6 diff --git a/src/BRepFill/BRepFill_Pipe.cxx b/src/BRepFill/BRepFill_Pipe.cxx index 0016db44a5..2b4d5b990d 100755 --- a/src/BRepFill/BRepFill_Pipe.cxx +++ b/src/BRepFill/BRepFill_Pipe.cxx @@ -805,7 +805,7 @@ TopoDS_Shape BRepFill_Pipe::ShareFaces if (i == 1) { jj = 1; } else { - jj == myFaces->RowLength(); + jj = myFaces->RowLength(); if (jj == 1) { break; @@ -842,19 +842,11 @@ TopoDS_Shape BRepFill_Pipe::ShareFaces TopoDS_Vertex aV[2]; TopExp::Vertices(TopoDS::Edge(anExp.Current()), aV[0], aV[1]); Standard_Integer ie; - Standard_Integer je; - Standard_Integer indV; // Compute jj index of edges. - if (i == 1) { - je = 1; - } else { - je == myEdges->RowLength(); - } - - Standard_Integer j; + Standard_Integer je = (i == 1 ? 1 : myEdges->RowLength()); - for (j = 0; j < 2; j++) { + for (Standard_Integer j = 0; j < 2; j++) { if (aMapUsedVtx.Contains(aV[j])) { // This vertex is treated. continue;