mirror of https://github.com/CGAL/cgal
Fix precondition
This commit is contained in:
parent
b7f2e2efb5
commit
37f2286036
|
|
@ -542,7 +542,7 @@ j);
|
||||||
/*!
|
/*!
|
||||||
Forces the current dimension
|
Forces the current dimension
|
||||||
of the complex to `d`.
|
of the complex to `d`.
|
||||||
\pre \f$-1 \leq d \leq \f$`maximal_dimension()`.
|
\pre \f$-2 \leq d \leq \f$`maximal_dimension()`.
|
||||||
*/
|
*/
|
||||||
void set_current_dimension(int d);
|
void set_current_dimension(int d);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -421,7 +421,7 @@ public:
|
||||||
|
|
||||||
void set_current_dimension(const int d) /* Concept */
|
void set_current_dimension(const int d) /* Concept */
|
||||||
{
|
{
|
||||||
CGAL_precondition(-1<=d && d<=maximal_dimension());
|
CGAL_precondition(-2<=d && d<=maximal_dimension());
|
||||||
dcur_ = d;
|
dcur_ = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue