Fix precondition

This commit is contained in:
Clement Jamin 2014-05-22 07:50:36 +02:00
parent b7f2e2efb5
commit 37f2286036
2 changed files with 2 additions and 2 deletions

View File

@ -542,7 +542,7 @@ j);
/*!
Forces the current dimension
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);

View File

@ -421,7 +421,7 @@ public:
void set_current_dimension(const int d) /* Concept */
{
CGAL_precondition(-1<=d && d<=maximal_dimension());
CGAL_precondition(-2<=d && d<=maximal_dimension());
dcur_ = d;
}