aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-24 18:19:38 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-24 18:19:38 +1000
commitbef1bd1c8a4c409ccb5e831d62ef42d24489050e (patch)
tree9d4fbd18545b781eb9c6a4764b4fcefd0873dff1
parente0a9d1ac682f72f02c1cf5836103981ab4fefe06 (diff)
downloadscintilla-mirror-bef1bd1c8a4c409ccb5e831d62ef42d24489050e.tar.gz
Ensure context is not freed for measurement surfaces as it is NULL.
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 0b8eeaf92..cd57607bc 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -552,7 +552,7 @@ void SurfaceImpl::Init(WindowID wid) {
// if we are only created from a window ID, we can't perform drawing
psurf = 0;
context = 0;
- createdGC = true;
+ createdGC = false;
pcontext = gtk_widget_create_pango_context(PWidget(wid));
PLATFORM_ASSERT(pcontext);
layout = pango_layout_new(pcontext);