Bug in undo when cancelling Shape tool used with Shift key

This commit is contained in:
jdescottes 2014-12-24 08:27:54 +01:00
parent 25bb46d097
commit 043f077408
2 changed files with 4 additions and 3 deletions

View File

@ -169,6 +169,7 @@
var width = this.zoom * this.piskelController.getCurrentFrame().getWidth();
var verticalMargin = (Constants.PREVIEW_FILM_SIZE - width) / 2;
canvasContainer.style.marginLeft = verticalMargin + 'px';
canvasContainer.style.marginRight = verticalMargin + 'px';
var canvasBackground = document.createElement("div");

View File

@ -49,10 +49,10 @@
var coords = this.getCoordinates_(col, row, event);
this.draw_(coords.col, coords.row, color, frame);
$.publish(Events.DRAG_END, [col, row]);
$.publish(Events.DRAG_END, [coords.col, coords.row]);
this.raiseSaveStateEvent({
col : col,
row : row,
col : coords.col,
row : coords.row,
startCol : this.startCol,
startRow : this.startRow,
color : color