From 796ffb36714dc2cbd441f0c3b09679ba93fd707e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 9 Jul 2017 10:13:40 +0200 Subject: [PATCH] Initialize variable holding initial transformation matrix When wxMacCoreGraphicsContext is created for wxGraphicsRenderer, initial transformation matrix is just an identity matrix. --- src/osx/carbon/graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/carbon/graphics.cpp b/src/osx/carbon/graphics.cpp index 27feca9780..c7ede1691a 100644 --- a/src/osx/carbon/graphics.cpp +++ b/src/osx/carbon/graphics.cpp @@ -1510,6 +1510,7 @@ wxMacCoreGraphicsContext::wxMacCoreGraphicsContext( wxGraphicsRenderer* renderer wxMacCoreGraphicsContext::wxMacCoreGraphicsContext(wxGraphicsRenderer* renderer) : wxGraphicsContext(renderer) { Init(); + m_initTransform = CGAffineTransformIdentity; } wxMacCoreGraphicsContext::~wxMacCoreGraphicsContext()