summaryrefslogtreecommitdiff
path: root/src/cairo-pattern.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-07-18 11:19:35 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-07-31 16:46:36 +0200
commit1f2dc2e06a2c2daabeefbea4c32cdf55bdf6b338 (patch)
tree41c0f2abc1200b730b5d34f332a8d203b53f7e1c /src/cairo-pattern.c
parentb39d3d4b53951f951a3af188dd55acf2e0fa8eda (diff)
pattern: Do not provide type field in cairo_pattern_union_t
The type field is accessible through the base.type field. This makes it possible to change the layout of cairo_pattern_t and move the type field without breaking cairo_pattern_union_t.
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r--src/cairo-pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 13aad6fa4..cb6bba845 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -3674,7 +3674,7 @@ _cairo_pattern_is_clear (const cairo_pattern_t *abstract_pattern)
return FALSE;
pattern = (cairo_pattern_union_t *) abstract_pattern;
- switch (pattern->type) {
+ switch (abstract_pattern->type) {
case CAIRO_PATTERN_TYPE_SOLID:
return CAIRO_COLOR_IS_CLEAR (&pattern->solid.color);
case CAIRO_PATTERN_TYPE_SURFACE: