Index: trunk/psLib/src/math/psSpline.c
===================================================================
--- trunk/psLib/src/math/psSpline.c	(revision 3115)
+++ trunk/psLib/src/math/psSpline.c	(revision 3171)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-02-03 00:54:10 $
+ *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-09 20:56:17 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -260,5 +260,9 @@
     // Polynomial i has i-th order.
     chebPolys[0]->coeff[0] = 1;
-    chebPolys[1]->coeff[1] = 1;
+
+    // XXX: Bug 296
+    if (maxChebyPoly > 1) {
+        chebPolys[1]->coeff[1] = 1;
+    }
     for (i = 2; i < maxChebyPoly; i++) {
         for (j = 0; j < chebPolys[i - 1]->n; j++) {
