projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0024682: Move out B-spline cache from curves and surfaces to dedicated classes BSplCL...
[occt.git]
/
src
/
BSplCLib
/
BSplCLib.cxx
diff --git
a/src/BSplCLib/BSplCLib.cxx
b/src/BSplCLib/BSplCLib.cxx
index
0357c7e
..
c87c5b7
100644
(file)
--- a/
src/BSplCLib/BSplCLib.cxx
+++ b/
src/BSplCLib/BSplCLib.cxx
@@
-73,6
+73,7
@@
void BSplCLib::Hunt (const Array1OfReal& XX,
{
// replaced by simple dichotomy (RLE)
Ilc = XX.Lower();
+ if (XX.Length() <= 1) return;
const Standard_Real *px = &XX(Ilc);
px -= Ilc;