Don't initialize variable twice

This commit is contained in:
Artur Wieczorek
2016-08-09 20:54:46 +02:00
parent a1682a4568
commit c96aec4d44

View File

@@ -322,8 +322,7 @@ void wxGCDCImpl::DoSetDeviceClippingRegion( const wxRegion &region )
// to the initial state in which logical and device coordinate // to the initial state in which logical and device coordinate
// systems are equivalent. // systems are equivalent.
// So, at first save current transformation parameters. // So, at first save current transformation parameters.
wxGraphicsMatrix currTransform = m_graphicContext->CreateMatrix(); wxGraphicsMatrix currTransform = m_graphicContext->GetTransform();
currTransform = m_graphicContext->GetTransform();
// Reset coordinate system with identity transformation matrix // Reset coordinate system with identity transformation matrix
// to make logical coordinates the same as device coordinates. // to make logical coordinates the same as device coordinates.
wxGraphicsMatrix m = m_graphicContext->CreateMatrix(); wxGraphicsMatrix m = m_graphicContext->CreateMatrix();