summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xagg/inc/agg_renderer_outline_aa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/agg/inc/agg_renderer_outline_aa.h b/agg/inc/agg_renderer_outline_aa.h
index e1f2a428d33b..ef4f80e89437 100755
--- a/agg/inc/agg_renderer_outline_aa.h
+++ b/agg/inc/agg_renderer_outline_aa.h
@@ -1372,7 +1372,7 @@ namespace agg
//---------------------------------------------------------------------
void profile(const line_profile_aa& prof) { m_profile = &prof; }
const line_profile_aa& profile() const { return *m_profile; }
- line_profile_aa& profile() { return *m_profile; }
+ line_profile_aa& profile() { return const_cast<line_profile_aa&>(*m_profile); }
//---------------------------------------------------------------------
int subpixel_width() const { return m_profile->subpixel_width(); }