mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 09:50:33 +05:00
compilation errors on WIN
This commit is contained in:
parent
89af3a1499
commit
684b609375
@ -1006,11 +1006,11 @@ void CurveCreator_Widget::onBringTogether()
|
|||||||
|
|
||||||
CurveCreator_ICurve::SectionToPointList::const_iterator anIt = myLocalPoints.begin(),
|
CurveCreator_ICurve::SectionToPointList::const_iterator anIt = myLocalPoints.begin(),
|
||||||
aLast = myLocalPoints.end();
|
aLast = myLocalPoints.end();
|
||||||
int sections[nbPoints];
|
std::vector<int> sections(nbPoints);
|
||||||
int iPoints[nbPoints];
|
std::vector<int> iPoints(nbPoints);
|
||||||
int nbPtsSection[nbPoints];
|
std::vector<int> nbPtsSection(nbPoints);
|
||||||
double x[nbPoints];
|
std::vector<double> x(nbPoints);
|
||||||
double y[nbPoints];
|
std::vector<double> y(nbPoints);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for ( ; anIt != aLast; anIt++, i++ )
|
for ( ; anIt != aLast; anIt++, i++ )
|
||||||
{
|
{
|
||||||
@ -1018,7 +1018,7 @@ void CurveCreator_Widget::onBringTogether()
|
|||||||
sections[i] = aSPoint.first;
|
sections[i] = aSPoint.first;
|
||||||
iPoints[i] = aSPoint.second;
|
iPoints[i] = aSPoint.second;
|
||||||
nbPtsSection[i] = myCurve->getNbPoints(sections[i]);
|
nbPtsSection[i] = myCurve->getNbPoints(sections[i]);
|
||||||
if ((iPoints[i] != 0) and (iPoints[i] != nbPtsSection[i]-1))
|
if ((iPoints[i] != 0) && (iPoints[i] != nbPtsSection[i]-1))
|
||||||
{
|
{
|
||||||
MESSAGE("a point is not on a section extremity, nothing done");
|
MESSAGE("a point is not on a section extremity, nothing done");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user