From bef1bd1c8a4c409ccb5e831d62ef42d24489050e 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(-) (limited to 'gtk') 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