Fix rigth->right
This commit is contained in:
parent
d3ff7a2d29
commit
29363cf846
1 changed files with 4 additions and 4 deletions
|
@ -31,11 +31,11 @@ const int MY_ERROR = -1;
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
// index must be between 0 and controlPointCount-1
|
||||
inline bool isIncluded(int index, int left, int rigth) {
|
||||
if (left < rigth) {
|
||||
return left <= index && index <= rigth;
|
||||
inline bool isIncluded(int index, int left, int right) {
|
||||
if (left < right) {
|
||||
return left <= index && index <= right;
|
||||
} else {
|
||||
return left <= index || index <= rigth;
|
||||
return left <= index || index <= right;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue