From 44c91fedb8a64f3bc44232de3f0050c47fd60578 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Wed, 24 Aug 2016 15:09:05 -0400 Subject: [PATCH] fix build without graphics context --- src/generic/activityindicator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/activityindicator.cpp b/src/generic/activityindicator.cpp index 53c65e14bf..02ed29b22d 100644 --- a/src/generic/activityindicator.cpp +++ b/src/generic/activityindicator.cpp @@ -122,7 +122,7 @@ private: void OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC pdc(m_win); - +#if wxUSE_GRAPHICS_CONTEXT wxScopedPtr const gc(wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(pdc)); @@ -167,6 +167,7 @@ private: gc->FillPath(path); gc->Rotate(angle); } +#endif } AdvanceTimer m_timer;