diff options
author | Matteo Bernardini | 2020-10-31 16:32:36 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-10-31 16:32:36 +0100 |
commit | ede8ce81ea264ba9fc0271cbb6b25961290b80ee (patch) | |
tree | 13da336105ec799f2da3f9e848c71730c7807490 /libraries/agg/patches | |
parent | 95a609fb8edebc8dab3ec446190c9a39d4ac6656 (diff) | |
download | slackbuilds-current-20201031.1.tar.gz |
20201031.1 global branch merge.current-20201031.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/agg/patches')
-rw-r--r-- | libraries/agg/patches/0016-bad-const.patch | 12 |
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(); } |