From 7ce145146a3815791ab4f10e198ae10293afdbeb Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 24 Jun 2014 18:19:38 +1000 Subject: Ensure context is not freed for measurement surfaces as it is NULL. --- gtk/PlatGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3