From afc9e42772de8a69a6c2a028e98dc5ca8d96df52 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Thu, 8 Apr 2021 19:35:50 +0200 Subject: 20210408.1 global branch merge. Signed-off-by: Matteo Bernardini --- libraries/agg/patches/0016-bad-const.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/agg/patches/0016-bad-const.patch (limited to 'libraries/agg/patches/0016-bad-const.patch') diff --git a/libraries/agg/patches/0016-bad-const.patch b/libraries/agg/patches/0016-bad-const.patch new file mode 100644 index 0000000000..045e77ba13 --- /dev/null +++ b/libraries/agg/patches/0016-bad-const.patch @@ -0,0 +1,12 @@ +diff -u -r agg-2.5/include/agg_renderer_outline_aa.h agg-2.5-const/include/agg_renderer_outline_aa.h +--- agg-2.5/include/agg_renderer_outline_aa.h 2006-10-09 06:07:08.000000000 +0200 ++++ agg-2.5-const/include/agg_renderer_outline_aa.h 2018-06-16 23:09:16.500057814 +0200 +@@ -1375,7 +1375,7 @@ + //--------------------------------------------------------------------- + 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(m_profile); } + + //--------------------------------------------------------------------- + int subpixel_width() const { return m_profile->subpixel_width(); } -- cgit v1.2.3