diff options
Diffstat (limited to 'source/pdf/pdf-op-filter.c')
-rw-r--r-- | source/pdf/pdf-op-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-op-filter.c b/source/pdf/pdf-op-filter.c index a8496e35..8eebe5cd 100644 --- a/source/pdf/pdf-op-filter.c +++ b/source/pdf/pdf-op-filter.c @@ -929,7 +929,7 @@ pdf_filter_SC_color(fz_context *ctx, pdf_processor *proc, int n, float *color) gstate->SC.shd = NULL; gstate->SC.n = n; for (i = 0; i < n; ++i) - gstate->SC.c[i] = color[i]; + gstate->SC.c[i] = fz_clamp(color[i], 0, 1); } static void @@ -943,7 +943,7 @@ pdf_filter_sc_color(fz_context *ctx, pdf_processor *proc, int n, float *color) gstate->sc.shd = NULL; gstate->sc.n = n; for (i = 0; i < n; ++i) - gstate->sc.c[i] = color[i]; + gstate->sc.c[i] = fz_clamp(color[i], 0, 1); } static void |