changeset 18754:04adeda9b83d

Revert ea22cf3e370b and 60df2fd04293 plotting grid/ticks over axes lines. Need to implement a more robust solution which checks for box on / box off and whether graph is 2D / 3D. * gl-render.cc: Use '<=' rather than '<' to include all grid/ticks.
author Rik <rik@octave.org>
date Fri, 02 May 2014 10:43:06 -0700
parents b1f092e1a887
children 700714c099a2
files libinterp/corefcn/gl-render.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Fri May 02 10:02:24 2014 -0700
+++ b/libinterp/corefcn/gl-render.cc	Fri May 02 10:43:06 2014 -0700
@@ -651,7 +651,7 @@
   for (int i = 0; i < ticks.numel (); i++)
     {
       double val = ticks(i);
-      if (lim1 < val && val < lim2)
+      if (lim1 <= val && val <= lim2)
         {
           if (xyz == 0) // X
             {
@@ -700,7 +700,7 @@
     {
       double val = ticks(i);
 
-      if (lim1 < val && val < lim2)
+      if (lim1 <= val && val <= lim2)
         {
           if (xyz == 0) // X
             {