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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user