summaryrefslogtreecommitdiffstats
path: root/libraries/agg/patches/0016-bad-const.patch
diff options
context:
space:
mode:
author Matteo Bernardini2021-04-10 17:02:43 +0200
committer Matteo Bernardini2021-04-10 17:02:43 +0200
commit97e000b8ce16626a160e2196627fb0c884dbcfbf (patch)
treec8bf51d3d2d2b60a4ca906996a8c17ed9cb3ffb9 /libraries/agg/patches/0016-bad-const.patch
parentcf65c072371dbcb73b7ea6d75de27bb6b96899f7 (diff)
downloadslackbuilds-97e000b8ce16626a160e2196627fb0c884dbcfbf.tar.gz
20210410.1 global branch merge.current-20210410.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/agg/patches/0016-bad-const.patch')
-rw-r--r--libraries/agg/patches/0016-bad-const.patch12
1 files changed, 12 insertions, 0 deletions
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<line_profile_aa*>(m_profile); }
+
+ //---------------------------------------------------------------------
+ int subpixel_width() const { return m_profile->subpixel_width(); }