From af86380553169606c985e0053a1630e9514e18b6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 9 Oct 2006 16:06:29 +0000 Subject: [PATCH] copying as much values from the dc as possible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/graphcmn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 16e83757db..25d4e3e5d4 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -306,6 +306,11 @@ wxGCDC::wxGCDC(const wxWindowDC& dc) m_ok = true; if ( dc.GetFont().Ok()) m_graphicContext->SetFont(dc.GetFont()); + if ( dc.GetPen().Ok()) + m_graphicContext->SetPen(dc.GetPen()); + if ( dc.GetBrush().Ok()) + m_graphicContext->SetBrush(dc.GetBrush()); + m_graphicContext->SetTextColor(dc.GetTextForeground()); } void wxGCDC::Init()