corrected bug in returning value of MarkSmallestEdgeOrDiag

This commit is contained in:
Nico Pietroni 2009-09-02 13:27:30 +00:00
parent 672cb554b1
commit c1daa656fe
1 changed files with 2 additions and 2 deletions

View File

@ -123,9 +123,9 @@ static int MarkSmallestEdgeOrDiag(MeshType &m, ScalarType edgeMult, bool perform
if (perform) { if (perform) {
if (fa->IsF(w)) { if (fa->IsF(w)) {
if (counterDiag) { if (counterDiag) {
BQ::CollapseCounterDiag(*fa, BQ::PosOnDiag(*fa,true), m ); return 2; if (BQ::CollapseCounterDiag(*fa, BQ::PosOnDiag(*fa,true), m )) return 2;
} else { } else {
BQ::CollapseDiag(*fa, BQ::PosOnDiag(*fa,false), m ); return 2; if (BQ::CollapseDiag(*fa, BQ::PosOnDiag(*fa,false), m )) return 2;
} }
} else { } else {
if (BQ::CollapseEdge(*fa,w,m)) return 1; if (BQ::CollapseEdge(*fa,w,m)) return 1;