Merge pull request #1847 from bromagosa/floodfill-fix

[resubmitting to dev branch] fixes #1349
upd4.1
Jens Mönig 2017-09-01 12:03:34 +02:00 zatwierdzone przez GitHub
commit c8aa75e4f9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -747,7 +747,7 @@ PaintCanvasMorph.prototype.floodfill = function (sourcepoint) {
ctx = this.paper.getContext("2d"),
img = ctx.getImageData(0, 0, width, height),
data = img.data,
stack = [Math.round(sourcepoint.y) * width + sourcepoint.x],
stack = [Math.round(Math.round(sourcepoint.y) * width + sourcepoint.x)],
currentpoint,
read,
sourcecolor,