Tests under Windows in Debug mode.

This commit is contained in:
rnv 2021-11-11 16:47:22 +03:00 committed by vsr
parent 5d57f4e257
commit e6fe1c8354
2 changed files with 6 additions and 2 deletions

View File

@ -4458,7 +4458,7 @@ namespace
// connect pn2 (probably new, at _eIntNodes) with a split // connect pn2 (probably new, at _eIntNodes) with a split
int i, iConn; int i, iConn = 0;
size_t nbCommon; size_t nbCommon;
TGeomID commonFaces[20]; TGeomID commonFaces[20];
_Node* nPrev = nullptr; _Node* nPrev = nullptr;

View File

@ -637,7 +637,11 @@ bool StdMeshers_MEFISTO_2D::LoadPoints(TWireVector & wires,
m++; m++;
} }
int mFirst = mOnVertex.front(), mLast = m - 1; int mFirst = 0, mLast = 0;
if (!mOnVertex.empty()) {
mFirst = mOnVertex.front();
mLast = m - 1;
}
list< int >::iterator mIt = mOnVertex.begin(); list< int >::iterator mIt = mOnVertex.begin();
for ( ; mIt != mOnVertex.end(); ++mIt) for ( ; mIt != mOnVertex.end(); ++mIt)
{ {