summaryrefslogtreecommitdiff
path: root/src/cairo-path-stroke.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@nirvana-fedora.(none)>2011-06-09 14:16:48 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-06-16 09:48:30 +0200
commita06668fabef17daff5f8cea125b8b33ea7568a81 (patch)
tree9407ab01f29a0e1812c18f3f5772094e0ecba3bf /src/cairo-path-stroke.c
parent8e7589abcc4075d4a1de9151e79fda5d093d03bb (diff)
downloadcairo-a06668fabef17daff5f8cea125b8b33ea7568a81.tar.gz
path-stroke: Avoid mixing cap and join values
Silence the warning: cairo-path-stroke.c: In function '_cairo_stroker_add_caps': cairo-path-stroke.c:861:29: warning: comparison between 'cairo_line_cap_t' and 'enum _cairo_line_join' [-Wenum-compare] CAIRO_LINE_JOIN_ROUND and CAIRO_LINE_CAP_ROUND have the same value, hence this defect went unnoticed so far.
Diffstat (limited to 'src/cairo-path-stroke.c')
-rw-r--r--src/cairo-path-stroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c
index d5ced0e58..522f1ab20 100644
--- a/src/cairo-path-stroke.c
+++ b/src/cairo-path-stroke.c
@@ -858,7 +858,7 @@ _cairo_stroker_add_caps (cairo_stroker_t *stroker)
if (stroker->has_initial_sub_path
&& ! stroker->has_first_face
&& ! stroker->has_current_face
- && stroker->style.line_cap == CAIRO_LINE_JOIN_ROUND)
+ && stroker->style.line_cap == CAIRO_LINE_CAP_ROUND)
{
/* pick an arbitrary slope to use */
double dx = 1.0, dy = 0.0;