diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-06-24 18:19:38 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-06-24 18:19:38 +1000 |
| commit | bef1bd1c8a4c409ccb5e831d62ef42d24489050e (patch) | |
| tree | 9d4fbd18545b781eb9c6a4764b4fcefd0873dff1 | |
| parent | e0a9d1ac682f72f02c1cf5836103981ab4fefe06 (diff) | |
| download | scintilla-mirror-bef1bd1c8a4c409ccb5e831d62ef42d24489050e.tar.gz | |
Ensure context is not freed for measurement surfaces as it is NULL.
| -rw-r--r-- | gtk/PlatGTK.cxx | 2 |
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); |
