Skip to content

Commit

Permalink
[se] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Oct 13, 2023
1 parent d746ff9 commit e5a4a7f
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions cell/model/Workbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -4706,6 +4706,8 @@
* @param {string} sFormulaCell
* @param {string} sExpectedValue
* @param {string} sChangingCell
* @param {Worksheet} wsFormula
* @param {Worksheet} wsChangingCell
*/
Workbook.prototype.startGoalSeek = function(sFormulaCell, sExpectedValue, sChangingCell, wsFormula, wsChangingCell) {
let oParserFormula;
Expand Down Expand Up @@ -4749,29 +4751,12 @@
}
let oChangedCell = oGoalSeek.getChangingCell();
oChangedCell.setValue(oGoalSeek.getFirstChangingValue());
this._closeGoalSeek();
this.setGoalSeek(null);
};
/**
* Saves goal seek result for "Changing cell"
*/
Workbook.prototype.saveGoalSeek = function() {
this._closeGoalSeek();
};

Workbook.prototype._closeGoalSeek = function() {
let oGoalSeek = this.getGoalSeek();
let oChangedCell = oGoalSeek && oGoalSeek.getChangingCell();
if (oChangedCell) {
/*this._updateRange(bbox);
if (bbox && (bbox.getType() === c_oAscSelectionType.RangeMax || bbox.getType() === c_oAscSelectionType.RangeCol)) {
this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollVertical;
if (bbox.getType() === c_oAscSelectionType.RangeMax) {
this.scrollType |= AscCommonExcel.c_oAscScrollType.ScrollHorizontal;
}
}
this.canChangeColWidth = c_oAscCanChangeColWidth.none;
this.draw(lockDraw);*/
}
this.setGoalSeek(null);
};

Expand Down

0 comments on commit e5a4a7f

Please sign in to comment.