diff options
-rw-r--r-- | tksao/frame/base.C | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tksao/frame/base.C b/tksao/frame/base.C index 22a0d9d..d981b9c 100644 --- a/tksao/frame/base.C +++ b/tksao/frame/base.C @@ -1685,6 +1685,10 @@ void Base::updateMagnifier(const Vector& vv) if (!(magnifierXImage && magnifierPixmap)) return; + // just in case + if (!widgetGC) + widgetGC = XCreateGC(display, Tk_WindowId(tkwin), 0, NULL); + if (useMagnifier) { updateMagnifierMatrices(); |