summaryrefslogtreecommitdiffstats
path: root/tksao/util/gridbase.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/util/gridbase.C')
-rw-r--r--tksao/util/gridbase.C9
1 files changed, 2 insertions, 7 deletions
diff --git a/tksao/util/gridbase.C b/tksao/util/gridbase.C
index a941755..389e025 100644
--- a/tksao/util/gridbase.C
+++ b/tksao/util/gridbase.C
@@ -24,8 +24,7 @@ GridBase::GridBase(Widget* pp) : parent_(pp)
line_ = new Attribute(parent_);
text_ = new Attribute(parent_);
- gridGC_ = XCreateGC(parent_->getDisplay(), Tk_WindowId(parent_->getTkwin()),
- 0, NULL);
+ gridGC_ = NULL;
pixmap_ = 0;
mode_ = Widget::RGB;
@@ -39,8 +38,7 @@ GridBase::GridBase(Widget* pp, const char* op) : parent_(pp)
line_ = new Attribute(parent_);
text_ = new Attribute(parent_);
- gridGC_ = XCreateGC(parent_->getDisplay(), Tk_WindowId(parent_->getTkwin()),
- 0, NULL);
+ gridGC_ = NULL;
pixmap_ = 0;
mode_ = Widget::RGB;
@@ -51,9 +49,6 @@ GridBase::~GridBase()
if (option_)
delete [] option_;
- if (gridGC_)
- XFreeGC(parent_->getDisplay(), gridGC_);
-
if (line_)
delete line_;
if (text_)