summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-06-26 20:37:28 (GMT)
committerjoye <joye>2014-06-26 20:37:28 (GMT)
commit1115eaa1077bd1164a486c3c15c16ce99bd34d34 (patch)
treecc5976cb3c1fb499314bf1a46213325654932c7c /src
parent8b87cbe046ec9f5be7ea6e32e9b2ea16635ee61d (diff)
downloadblt-1115eaa1077bd1164a486c3c15c16ce99bd34d34.zip
blt-1115eaa1077bd1164a486c3c15c16ce99bd34d34.tar.gz
blt-1115eaa1077bd1164a486c3c15c16ce99bd34d34.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGraph.C6
1 files changed, 6 insertions, 0 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