diff options
-rw-r--r-- | src/bltGraph.C | 6 | ||||
-rw-r--r-- | tests/ps.tcl | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C index 980f02e..7bf15cb 100644 --- a/src/bltGraph.C +++ b/src/bltGraph.C @@ -353,6 +353,12 @@ int Graph::print(const char* ident, PostScript* psPtr) GraphOptions* ops = (GraphOptions*)ops_; PageSetupOptions* pops = (PageSetupOptions*)pageSetup_->ops_; + // be sure the window is realized so that relief colors are available + if (flags & REDRAW_PENDING) { + flags |= REDRAW_PENDING; + DisplayGraph(this); + } + // We need to know how big a graph to print. If the graph hasn't been drawn // yet, the width and height will be 1. Instead use the requested size of // the widget. The user can still override this with the -width and -height diff --git a/tests/ps.tcl b/tests/ps.tcl index 859ceca..eab89e0 100644 --- a/tests/ps.tcl +++ b/tests/ps.tcl @@ -17,10 +17,10 @@ $graph legend selection set data2 $graph legend focus data1 $graph legend configure -selectrelief groove -$graph postscript configure -decorations no -$graph postscript output bar.ps $graph postscript configure -decorations yes $graph postscript output foo.ps +$graph postscript configure -decorations no +$graph postscript output bar.ps #set graph [bltBarGraph $w] |