From: Stefan Csomor Date: Wed, 5 May 2004 07:18:42 +0000 (+0000) Subject: using const GetPen X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d9aac18e977d4f65f5d944976bc44fc2e814022 using const GetPen git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index c0f44cf484..8011e7da3f 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -631,10 +631,9 @@ void wxDC::ComputeScaleAndOrigin() { // this is a bit artificial, but we need to force wxDC to think // the pen has changed - wxPen* pen = & GetPen(); - wxPen tempPen; - m_pen = tempPen; - SetPen(* pen); + wxPen pen(GetPen()); + m_pen = wxNullPen; + SetPen(pen); } }