Mercurial > octave
diff libinterp/corefcn/gl2ps-print.cc @ 23858:cb8251337689
Fix printing of plots with axes that are not visible (bug #51713).
* gl2ps-print.cc (draw_axes): Remove shortcircuit testing of invisible axis at
top of function. Check that axes is visible before issuing warning about
empty feedback buffer.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 09 Aug 2017 19:54:18 -0700 |
parents | cbea10ff137e |
children | 7148b237f94f |
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-print.cc Wed Aug 09 18:02:27 2017 -0700 +++ b/libinterp/corefcn/gl2ps-print.cc Wed Aug 09 19:54:18 2017 -0700 @@ -96,11 +96,6 @@ void draw_axes (const axes::properties& props) { - // FIXME: Until polar axes are first class axes, need to print - // the invisible polar axes. See bugs #51697, #51374. - if (! props.is_visible () && props.get_tag () != "polaraxes") - return; - // Initialize a sorting tree (viewport) in gl2ps for each axes GLint vp[4]; glGetIntegerv (GL_VIEWPORT, vp); @@ -112,7 +107,7 @@ // Finalize viewport GLint state = gl2psEndViewport (); - if (state == GL2PS_NO_FEEDBACK) + if (state == GL2PS_NO_FEEDBACK && props.is_visible ()) warning ("gl2ps_renderer::draw_axes: empty feedback buffer and/or nothing else to print"); else if (state == GL2PS_ERROR) error ("gl2ps_renderer::draw_axes: gl2psEndPage returned GL2PS_ERROR");