Index: vtkAxisActor.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkAxisActor.cxx,v
retrieving revision 1.5
diff -u -a -r1.5 vtkAxisActor.cxx
--- vtkAxisActor.cxx	21 Apr 2008 15:51:47 -0000	1.5
+++ vtkAxisActor.cxx	21 Jan 2009 20:21:53 -0000
@@ -573,6 +573,17 @@
     pos[1] = (center[1] - yadjust *halfHeight);
     pos[2] = tick[2]; 
     this->LabelActors[i]->SetPosition(pos[0], pos[1], pos[2]);
+    /*if((this->AxisType==VTK_AXIS_TYPE_Y))
+      {
+      std::cout<<"Tick "<<i<<" location: ("<<pos[0]<<","<<pos[1]<<","<<pos[2]<<")"<<std::endl;
+      std::cout<<"Center "<<i<<" location: ("<<center[0]<<","<<center[1]<<")"<<std::endl;
+      std::cout<<"Tick "<<i<<": ("<<tick[0]<<","<<tick[1]<<","<<tick[2]<<")"<<std::endl;
+      std::cout<<"Half Height: "<<halfHeight<<" Half Width"<<halfWidth<<std::endl;
+          
+      std::cout<<"X-Adjust: "<<xadjust<<" Y-Adjust: "<<yadjust<<std::endl;
+      std::cout<<"Bounds: ("<<bounds[0]<<","<<bounds[1]<<","<<bounds[2]<<","<<bounds[3]<<")"<<std::endl;
+      std::cout<<"===================================================="<<std::endl;
+      }*/
     }
 }
 
@@ -1109,7 +1120,7 @@
 
   y = this->MajorStart;
   numTicks = 0;
-  while (y < p2[1] && numTicks < VTK_MAX_TICKS)
+  while (y <= p2[1] && numTicks < VTK_MAX_TICKS)
     {
     yPoint1[1] = xPoint[1] = yPoint2[1] = zPoint[1] = y;
     // yx portion
@@ -1150,8 +1161,11 @@
     }
   y = this->MajorStart;
   numTicks = 0;
-  while (y < p2[1] && numTicks < VTK_MAX_TICKS)
+  vtkDebugMacro(<<"Max Y point: "<<p2[1]);
+  vtkDebugMacro(<<"Delta: "<<this->DeltaMajor);
+  while (y <= p2[1] && numTicks < VTK_MAX_TICKS)
     {
+    vtkDebugMacro(<<"Current Y point: "<<y);
     yPoint1[1] = xPoint[1] = yPoint2[1] = zPoint[1] = y;
     // yx portion
     this->MajorTickPts->InsertNextPoint(yPoint1);
@@ -1160,8 +1174,10 @@
     this->MajorTickPts->InsertNextPoint(yPoint2);
     this->MajorTickPts->InsertNextPoint(zPoint);
     y += this->DeltaMajor;
+    vtkDebugMacro(<<"Next Y point: "<<y);
     numTicks++;
     }
+  vtkDebugMacro(<<"Number of Y ticks: "<<numTicks-1);
   return true;
 }
 
@@ -1265,7 +1281,7 @@
 
   z = this->MajorStart;
   numTicks = 0;
-  while (z < p2[2] && numTicks < VTK_MAX_TICKS)
+  while (z <= p2[2] && numTicks < VTK_MAX_TICKS)
     {
     zPoint1[2] = zPoint2[2] = xPoint[2] = yPoint[2] = z;
     // zx-portion
@@ -1307,7 +1323,7 @@
     }
   z = this->MajorStart;
   numTicks = 0;
-  while (z < p2[2] && numTicks < VTK_MAX_TICKS)
+  while (z <= p2[2] && numTicks < VTK_MAX_TICKS)
     {
     zPoint1[2] = zPoint2[2] = xPoint[2] = yPoint[2] = z;
     // zx-portion
