Issue #290: add missing parameter to dismissSelection in BaseSelect

This commit is contained in:
Julian Descottes 2016-07-31 00:00:45 +02:00 committed by juliandescottes
parent 0d5dc21a41
commit 22797e5dc5
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
ns.AbstractDragSelect.prototype.onSelectStart_ = function (col, row, frame, overlay) {
if (this.hasSelection) {
this.hasSelection = false;
this.dismissSelection();
this.dismissSelection(overlay);
} else {
this.hasSelection = true;
this.onDragSelectStart_(col, row);

View File

@ -111,7 +111,7 @@
/**
* Protected method, should be called when the selection is dismissed.
*/
ns.BaseSelect.prototype.dismissSelection = function () {
ns.BaseSelect.prototype.dismissSelection = function (overlay) {
if (this.isMovingContent_) {
$.publish(Events.SELECTION_PASTE);
this.isMovingContent_ = false;

View File

@ -24,7 +24,7 @@
ns.ShapeSelect.prototype.onSelectStart_ = function (col, row, frame, overlay) {
if (this.hasSelection) {
this.hasSelection = false;
this.dismissSelection();
this.dismissSelection(overlay);
} else {
this.hasSelection = true;
// From the pixel cliked, get shape using an algorithm similar to the paintbucket one: