Don't initialize variable twice
This commit is contained in:
@@ -322,8 +322,7 @@ void wxGCDCImpl::DoSetDeviceClippingRegion( const wxRegion ®ion )
|
|||||||
// 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();
|
||||||
|
Reference in New Issue
Block a user