Cleaning a bit pixel utils + fix empty paste bug

This commit is contained in:
Vince
2012-09-15 01:01:47 +02:00
parent 697f270d78
commit 28835f96f3
3 changed files with 36 additions and 70 deletions

View File

@@ -7,6 +7,7 @@
ns.BaseSelection.prototype.reset = function () {
this.pixels = [];
this.hasPastedContent = false;
};
ns.BaseSelection.prototype.move = function (colDiff, rowDiff) {
@@ -28,5 +29,6 @@
pixelWithCopiedColor.copiedColor =
targetFrame.getPixel(pixelWithCopiedColor.col, pixelWithCopiedColor.row);
}
this.hasPastedContent = true;
};
})();