diff options
Diffstat (limited to 'src/bltGraphLine.C')
-rw-r--r-- | src/bltGraphLine.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bltGraphLine.C b/src/bltGraphLine.C index 0e884d6..4fc510e 100644 --- a/src/bltGraphLine.C +++ b/src/bltGraphLine.C @@ -45,6 +45,7 @@ #include "bltGrMarker.h" #include "bltGrLegd.h" #include "bltGrHairs.h" +#include "bltGrPostscript.h" #include "bltGrDef.h" using namespace Blt; @@ -181,11 +182,21 @@ LineGraph::LineGraph(ClientData clientData, Tcl_Interp* interp, return; } + // do this last after Tk_SetClass set + legend_ = new Legend(this); + crosshairs_ = new Crosshairs(this); + postscript_ = new Postscript(this); + if (createPen("active", 0, NULL) != TCL_OK) { valid_ =0; return; } + if (createAxes() != TCL_OK) { + valid_ =0; + return; + } + adjustAxes(); Tcl_SetStringObj(Tcl_GetObjResult(interp_), Tk_PathName(tkwin_), -1); |