X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f631557e0eb3c640ac296ad44c7aeaef269d957..e4f1a68ad1a4c145878a7595c06859d3d59fc6e7:/src/cocoa/pen.mm diff --git a/src/cocoa/pen.mm b/src/cocoa/pen.mm index 5446e50d4c..8872b82cec 100644 --- a/src/cocoa/pen.mm +++ b/src/cocoa/pen.mm @@ -9,8 +9,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/setup.h" -#include "wx/pen.h" +#include "wx/wxprec.h" +#ifndef WX_PRECOMP + #include "wx/pen.h" +#endif //WX_PRECOMP #include "wx/bitmap.h" #include "wx/colour.h" @@ -129,6 +131,7 @@ inline wxPenRefData::wxPenRefData(const wxPenRefData& data) m_dash = data.m_dash; m_stipple = data.m_stipple; m_cocoaNSColor = [data.m_cocoaNSColor retain]; + m_cocoaDash = NULL; } inline void wxPenRefData::FreeCocoaNSColor()