Commit 2d99b1e8 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Bug fix

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51192 954022d7-b5bf-4e40-9824-e11837661b57
parent 17d443fb
...@@ -963,10 +963,8 @@ asc_CChart.prototype = { ...@@ -963,10 +963,8 @@ asc_CChart.prototype = {
break; break;
} }
if ( ws ) { if ( ws )
//ws.objectRender.rebuildChartGraphicObjects(); ws.objectRender.rebuildChartGraphicObjects();
//ws.objectRender.showDrawingObjects(false);
}
}, },
Redo: function(type, data) { Redo: function(type, data) {
...@@ -1071,10 +1069,8 @@ asc_CChart.prototype = { ...@@ -1071,10 +1069,8 @@ asc_CChart.prototype = {
this.legend.bOverlay = data.newValue; this.legend.bOverlay = data.newValue;
break; break;
} }
if ( ws ) { if ( ws )
//ws.objectRender.rebuildChartGraphicObjects(); ws.objectRender.rebuildChartGraphicObjects();
//ws.objectRender.showDrawingObjects(false);
}
} }
} }
...@@ -3792,7 +3788,7 @@ function DrawingObjects() { ...@@ -3792,7 +3788,7 @@ function DrawingObjects() {
_this.rebuildChartGraphicObjects = function() { _this.rebuildChartGraphicObjects = function() {
for (var i = 0; i < aObjects.length; i++) { for (var i = 0; i < aObjects.length; i++) {
var graphicObject = aObjects[i].graphicObject; var graphicObject = aObjects[i].graphicObject;
if ( graphicObject.isChart() ) { if ( graphicObject.isChart() && graphicObject.chart.range.intervalObject ) {
graphicObject.chart.rebuildSeries(); graphicObject.chart.rebuildSeries();
graphicObject.recalculate(); graphicObject.recalculate();
} }
...@@ -4367,6 +4363,7 @@ function DrawingObjects() { ...@@ -4367,6 +4363,7 @@ function DrawingObjects() {
_this.deleteDrawingBase = function(graphicId) { _this.deleteDrawingBase = function(graphicId) {
var position = null;
var bRedraw = false; var bRedraw = false;
for (var i = 0; i < aObjects.length; i++) { for (var i = 0; i < aObjects.length; i++) {
if ( aObjects[i].graphicObject.Id == graphicId ) { if ( aObjects[i].graphicObject.Id == graphicId ) {
...@@ -4375,14 +4372,15 @@ function DrawingObjects() { ...@@ -4375,14 +4372,15 @@ function DrawingObjects() {
worksheet.arrActiveChartsRanges = []; worksheet.arrActiveChartsRanges = [];
aObjects.splice(i, 1); aObjects.splice(i, 1);
bRedraw = true; bRedraw = true;
return i; position = i;
break;
} }
} }
if ( bRedraw ) if ( bRedraw )
_this.showDrawingObjects(true); _this.showDrawingObjects(true);
return null; return position;
}; };
_this.checkGraphicObjectPosition = function(x, y, w, h) { _this.checkGraphicObjectPosition = function(x, y, w, h) {
......
This diff is collapsed.
...@@ -4973,6 +4973,8 @@ ...@@ -4973,6 +4973,8 @@
var oHyperlink = new Hyperlink(); var oHyperlink = new Hyperlink();
oHyperlink.Hyperlink = drawingInfo.hyperlink.Value; oHyperlink.Hyperlink = drawingInfo.hyperlink.Value;
oHyperlink.Tooltip = drawingInfo.hyperlink.ToolTip; oHyperlink.Tooltip = drawingInfo.hyperlink.ToolTip;
var _r = this.activeRange.clone(true);
oHyperlink.Ref = this.model.getRange3(_r.r1, _r.c1, _r.r2, _r.c2);
var cellCursor = {cursor: kCurCells, target: "cells", col: (c ? c.col : -1), var cellCursor = {cursor: kCurCells, target: "cells", col: (c ? c.col : -1),
row: (r ? r.row : -1), userId: userId, row: (r ? r.row : -1), userId: userId,
......
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