diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-09-09 14:55:35 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-09-09 14:55:35 +0200 |
commit | 438b065a2337ee587442f25ddc587c4762f4d0b0 (patch) | |
tree | d18c8f7e51dd7e96b8e774f94d3f8862a6c38f73 /tex/context/base/mkiv/grph-img.lua | |
parent | fca2d946bc4d3ef525c3a2c9016e3b88d6d09812 (diff) | |
download | context-438b065a2337ee587442f25ddc587c4762f4d0b0.tar.gz |
2019-09-09 13:52:00
Diffstat (limited to 'tex/context/base/mkiv/grph-img.lua')
-rw-r--r-- | tex/context/base/mkiv/grph-img.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/grph-img.lua b/tex/context/base/mkiv/grph-img.lua index 55ae5a3a0..cde9c8442 100644 --- a/tex/context/base/mkiv/grph-img.lua +++ b/tex/context/base/mkiv/grph-img.lua @@ -677,6 +677,7 @@ do local pixel = false local data = specification.data local mask = specification.mask + local index = specification.index if colorspace == 1 or colorspace == "gray" then pixel = gray colorspace = 1 @@ -712,6 +713,9 @@ do mask[i] = setmetatableindex(gray) end end + if index then + index = setmetatableindex(pixel) + end local specification = { xsize = xsize, ysize = ysize, @@ -721,6 +725,7 @@ do colorspace = colorspace, data = data, mask = mask, + index = index, } return specification end |