From be6f93d72572979340b84eabe0dba420008d1b19 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 17 Apr 2016 18:24:59 +0200 Subject: [PATCH] Fixed initialization sequence in wxCairoContext ctor. Shared method Init should be invoked to initialize the context to assure consistency with other ctors. --- src/generic/graphicc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index fa0a2a8e10..f7466bd476 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2134,7 +2134,7 @@ wxCairoContext::wxCairoContext(wxGraphicsRenderer* renderer) : m_mswSurface = NULL; m_mswStateSavedDC = 0; #endif // __WXMSW__ - m_context = NULL; + Init(NULL); m_width = 0; m_height = 0; }