diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-07-03 15:28:26 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-07-03 15:28:26 +0000 |
commit | 96bf8c4b84adabcb5e6dd3796f2781c3ff7fd640 (patch) | |
tree | 272a9376ad0930aed7831f01e9745f7af75ee7dc /gs/src/gscolor1.c | |
parent | f563f1d6d626e14ab7d2f063045d1644dfff1574 (diff) |
Fix: [gs_]currentgray didn't return the correct value if the current color
space was a DeviceN space using the alternate space.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@542 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gscolor1.c')
-rw-r--r-- | gs/src/gscolor1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gs/src/gscolor1.c b/gs/src/gscolor1.c index abfc96719..7adce9851 100644 --- a/gs/src/gscolor1.c +++ b/gs/src/gscolor1.c @@ -72,6 +72,7 @@ gs_currentcmykcolor(const gs_state * pgs, float pr4[4]) gs_color_space_index csi = pgs->orig_cspace_index; frac fcc[4]; gs_client_color cc; + int code; sw:switch (csi) { case gs_color_space_index_DeviceGray: @@ -108,8 +109,9 @@ gs_currentcmykcolor(const gs_state * pgs, float pr4[4]) default: /* outer switch will catch undefined cases */ break; } - if (cs_concretize_color(pcc, pcs, fcc, pis) < 0) - break; + code = cs_concretize_color(pcc, pcs, fcc, pis); + if (code < 0) + return code; cc.paint.values[0] = frac2float(fcc[0]); cc.paint.values[1] = frac2float(fcc[1]); cc.paint.values[2] = frac2float(fcc[2]); |