1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028550: Foundation Classes - fix empty message passed to thrown exception

This commit is contained in:
kgv
2017-04-18 18:58:12 +03:00
committed by bugmaster
parent e87d0237d8
commit 2d2b3d53b7
142 changed files with 519 additions and 422 deletions

View File

@@ -138,42 +138,34 @@ void AppParCurves_MultiPoint::Transform2d(const Standard_Integer CuIndex,
SetPoint2d(CuIndex, newP);
}
void AppParCurves_MultiPoint::SetPoint (const Standard_Integer Index,
const gp_Pnt& Point) {
Standard_OutOfRange_Raise_if((Index <= 0) || (Index > nbP), "");
Standard_OutOfRange_Raise_if ((Index <= 0) || (Index > nbP),
"AppParCurves_MultiPoint::SetPoint() - wrong index");
tabPoint->SetValue(Index, Point);
}
const gp_Pnt& AppParCurves_MultiPoint::Point (const Standard_Integer Index) const
{
Standard_OutOfRange_Raise_if((Index <= 0) || (Index > nbP), "");
Standard_OutOfRange_Raise_if ((Index <= 0) || (Index > nbP),
"AppParCurves_MultiPoint::Point() - wrong index");
return tabPoint->Value(Index);
}
void AppParCurves_MultiPoint::SetPoint2d (const Standard_Integer Index,
const gp_Pnt2d& Point)
{
Standard_OutOfRange_Raise_if((Index <= nbP) || (Index > nbP+nbP2d), "");
Standard_OutOfRange_Raise_if ((Index <= nbP) || (Index > nbP+nbP2d),
"AppParCurves_MultiPoint::SetPoint2d() - wrong index");
tabPoint2d->SetValue(Index-nbP, Point);
}
const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index) const
{
Standard_OutOfRange_Raise_if((Index <= nbP) || (Index > nbP+nbP2d), "");
Standard_OutOfRange_Raise_if ((Index <= nbP) || (Index > nbP+nbP2d),
"AppParCurves_MultiPoint::Point2d() - wrong index");
return tabPoint2d->Value(Index-nbP);
}
void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
{