summaryrefslogtreecommitdiff
path: root/homebrew/libagg/patches.sh
blob: 07968de12d5366bf2d3abee85b6805ed6d20d3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
echo 'Creating brew-patch.diff'
cat << EOF >> brew-patch.diff
diff --git a/include/agg_renderer_outline_aa.h b/include/agg_renderer_outline_aa.h
index ce25a2e..9a12d35 100644
--- a/include/agg_renderer_outline_aa.h
+++ b/include/agg_renderer_outline_aa.h
@@ -1375,7 +1375,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; }
+        const line_profile_aa& profile() { return *m_profile; }

         //---------------------------------------------------------------------
         int subpixel_width() const { return m_profile->subpixel_width(); }
EOF