summaryrefslogtreecommitdiff
path: root/src/cairo-svg-glyph-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-svg-glyph-render.c')
-rw-r--r--src/cairo-svg-glyph-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-svg-glyph-render.c b/src/cairo-svg-glyph-render.c
index 2ca0d4cea..9b953687d 100644
--- a/src/cairo-svg-glyph-render.c
+++ b/src/cairo-svg-glyph-render.c
@@ -795,7 +795,7 @@ get_color (cairo_svg_glyph_render_t *svg_render,
if (end == s)
return FALSE;
- if (svg_render->palette && entry > 0 && entry < svg_render->num_palette_entries) {
+ if (svg_render->palette && entry >= 0 && entry < svg_render->num_palette_entries) {
FT_Color *palette_color = &svg_render->palette[entry];
color->type = RGB;
color->red = palette_color->red / 255.0;