Commit fc16921b authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 31127 - Не рисуется график после смены его типа и Undo, после сборки версии

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66902 954022d7-b5bf-4e40-9824-e11837661b57
parent 1fdb9585
......@@ -2969,10 +2969,26 @@ function DrawingObjects() {
}
};
_this.updateSizeDrawingObjects = function(target) {
if(!History.Is_On())
return;
_this.updateSizeDrawingObjects = function(target, bNoChangeCoords) {
if(!History.Is_On() || true === bNoChangeCoords){
if (target.target === c_oTargetType.RowResize) {
for (i = 0; i < aObjects.length; i++) {
drawingObject = aObjects[i];
if (drawingObject.from.row >= target.row) {
drawingObject.checkBoundsFromTo();
}
}
} else {
for (i = 0; i < aObjects.length; i++) {
drawingObject = aObjects[i];
if (drawingObject.from.col >= target.col) {
drawingObject.checkBoundsFromTo();
}
}
}
return;
}
var i, bNeedRecalc = false, drawingObject, coords;
if (target.target === c_oTargetType.RowResize) {
......
......@@ -4115,8 +4115,9 @@
this._updateRowPositions();
this._calcVisibleRows();
if (this.objectRender)
this.objectRender.updateSizeDrawingObjects({target: c_oTargetType.RowResize, row: firstUpdateRow});
if (this.objectRender){
this.objectRender.updateSizeDrawingObjects({target: c_oTargetType.RowResize, row: firstUpdateRow}, true);
}
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment