[Pkg-javascript-commits] [pdf.js] 16/109: Fix typo in `drawFigures`, in webgl.js, which causes shadingPatterns with `figure.type === triangles` to render incorrectly

David Prévot taffit at moszumanska.debian.org
Fri Sep 25 03:04:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit ee5ce4b4a2cdea0cb6beca226b8fc3a2de66eb6e
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Thu Aug 13 17:58:18 2015 +0200

    Fix typo in `drawFigures`, in webgl.js, which causes shadingPatterns with `figure.type === triangles` to render incorrectly
    
    The file `issue2948.pdf` from the test-suite can be used to (manually) test the patch.
---
 src/display/webgl.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/display/webgl.js b/src/display/webgl.js
index c102580..8a64dd4 100644
--- a/src/display/webgl.js
+++ b/src/display/webgl.js
@@ -360,7 +360,7 @@ var WebGLUtils = (function WebGLUtilsClosure() {
           for (var j = 0, jj = ps.length; j < jj; j++) {
             coords[pIndex] = coordsMap[ps[j]];
             coords[pIndex + 1] = coordsMap[ps[j] + 1];
-            colors[cIndex] = colorsMap[cs[i]];
+            colors[cIndex] = colorsMap[cs[j]];
             colors[cIndex + 1] = colorsMap[cs[j] + 1];
             colors[cIndex + 2] = colorsMap[cs[j] + 2];
             pIndex += 2;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list