From 2986407b5416ec85c0a9928d26e4ef84dfb1d75d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 31 Oct 2006 10:30:42 +0000 Subject: [PATCH] correct meaning of logical origin git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcgraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 5b173d0aa4..c0bcd97b1a 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -301,7 +301,8 @@ void wxGCDC::ComputeScaleAndOrigin() m_matrixCurrent = m_graphicContext->CreateMatrix(); m_matrixCurrent.Translate( m_deviceOriginX, m_deviceOriginY ); m_matrixCurrent.Scale( m_scaleX, m_scaleY ); - m_matrixCurrent.Translate( m_logicalOriginX, m_logicalOriginY ); + // the logical origin sets the origin to have new coordinates + m_matrixCurrent.Translate( -m_logicalOriginX, -m_logicalOriginY ); m_graphicContext->SetTransform( m_matrixOriginal ); m_graphicContext->ConcatTransform( m_matrixCurrent ); -- 2.45.2