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
commit7ce145146a3815791ab4f10e198ae10293afdbeb (patch)
tree9630814093c2f82a38a9c21b4516a5f967d2edcd
parentdd7b3437a932eca46d401f932cc7ca25e210dcf5 (diff)
downloadscintilla-mirror-7ce145146a3815791ab4f10e198ae10293afdbeb.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);