From c96aec4d4461029045973903dbc50b80a54c3fa7 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Tue, 9 Aug 2016 20:54:46 +0200 Subject: [PATCH] Don't initialize variable twice --- src/common/dcgraph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 546033894c..51daf83006 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -322,8 +322,7 @@ void wxGCDCImpl::DoSetDeviceClippingRegion( const wxRegion ®ion ) // to the initial state in which logical and device coordinate // systems are equivalent. // So, at first save current transformation parameters. - wxGraphicsMatrix currTransform = m_graphicContext->CreateMatrix(); - currTransform = m_graphicContext->GetTransform(); + wxGraphicsMatrix currTransform = m_graphicContext->GetTransform(); // Reset coordinate system with identity transformation matrix // to make logical coordinates the same as device coordinates. wxGraphicsMatrix m = m_graphicContext->CreateMatrix();