Commit 7a67b549 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 26907 - [CoEdit] Теряется отрисовка диаграммы, добавленной на второй и...

Bug 26907 - [CoEdit] Теряется отрисовка диаграммы, добавленной на второй и последующие листы, при передаче другому пользователю

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58962 954022d7-b5bf-4e40-9824-e11837661b57
parent c019ef01
...@@ -2658,8 +2658,6 @@ function DrawingObjects() { ...@@ -2658,8 +2658,6 @@ function DrawingObjects() {
window["Asc"]["editor"]._loadFonts(font_map, window["Asc"]["editor"]._loadFonts(font_map,
function() function()
{ {
var min_r = 0, max_r = 0, min_c = 0, max_c = 0; var min_r = 0, max_r = 0, min_c = 0, max_c = 0;
var series = oNewChartSpace.chart.plotArea.charts[0].series, ser; var series = oNewChartSpace.chart.plotArea.charts[0].series, ser;
......
...@@ -2240,12 +2240,12 @@ CChartSpace.prototype = ...@@ -2240,12 +2240,12 @@ CChartSpace.prototype =
var range = range1.bbox; var range = range1.bbox;
if(range.r1 === range.r2) if(range.r1 === range.r2)
{ {
var row = source_worksheet._getRowNoEmptyWithAll(range.r1); var row = source_worksheet._getRowNoEmpty(range.r1);
if(row && !row.hd) if(row && !row.hd)
{ {
for(j = range.c1; j <= range.c2; ++j) for(j = range.c1; j <= range.c2; ++j)
{ {
var col = source_worksheet._getColNoEmptyWithAll(j); var col = source_worksheet._getColNoEmpty(j);
if(!col || !col.hd) if(!col || !col.hd)
{ {
hidden = false; hidden = false;
...@@ -2265,12 +2265,12 @@ CChartSpace.prototype = ...@@ -2265,12 +2265,12 @@ CChartSpace.prototype =
} }
else else
{ {
var col = source_worksheet._getColNoEmptyWithAll(range.c1); var col = source_worksheet._getColNoEmpty(range.c1);
if(!col || !col.hd) if(!col || !col.hd)
{ {
for(j = range.r1; j <= range.r2; ++j) for(j = range.r1; j <= range.r2; ++j)
{ {
var row = source_worksheet._getRowNoEmptyWithAll(j); var row = source_worksheet._getRowNoEmpty(j);
if(!row || !row.hd) if(!row || !row.hd)
{ {
hidden = false; hidden = false;
...@@ -2335,12 +2335,12 @@ CChartSpace.prototype = ...@@ -2335,12 +2335,12 @@ CChartSpace.prototype =
var range = range1.bbox; var range = range1.bbox;
if(range.r1 === range.r2) if(range.r1 === range.r2)
{ {
var row = source_worksheet._getRowNoEmptyWithAll(range.r1); var row = source_worksheet._getRowNoEmpty(range.r1);
if(!row || !row.hd) if(!row || !row.hd)
{ {
for(j = range.c1; j <= range.c2; ++j) for(j = range.c1; j <= range.c2; ++j)
{ {
var col = source_worksheet._getColNoEmptyWithAll(j); var col = source_worksheet._getColNoEmpty(j);
if(!col || !col.hd) if(!col || !col.hd)
{ {
cell = source_worksheet.getCell( new CellAddress(range.r1, j, 0) ); cell = source_worksheet.getCell( new CellAddress(range.r1, j, 0) );
...@@ -2356,12 +2356,12 @@ CChartSpace.prototype = ...@@ -2356,12 +2356,12 @@ CChartSpace.prototype =
} }
else else
{ {
var col = source_worksheet._getColNoEmptyWithAll(range.c1); var col = source_worksheet._getColNoEmpty(range.c1);
if(!col || !col.hd) if(!col || !col.hd)
{ {
for(j = range.r1; j <= range.r2; ++j) for(j = range.r1; j <= range.r2; ++j)
{ {
var row = source_worksheet._getRowNoEmptyWithAll(j); var row = source_worksheet._getRowNoEmpty(j);
if(!row || !row.hd) if(!row || !row.hd)
{ {
cell = source_worksheet.getCell(new CellAddress(j, range.c1, 0)); cell = source_worksheet.getCell(new CellAddress(j, range.c1, 0));
...@@ -13478,7 +13478,7 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) { ...@@ -13478,7 +13478,7 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) {
function getNumCache(c1, c2, r1, r2) { function getNumCache(c1, c2, r1, r2) {
// (c1 == c2) || (r1 == r2) // (c1 == c2) || (r1 == r2)
var cache = [], cell, item; var cache = [], cell, item, colObject, rowObject;
if ( c1 == c2 ) { // vertical cache if ( c1 == c2 ) { // vertical cache
for (var row = r1; row <= r2; row++) { for (var row = r1; row <= r2; row++) {
...@@ -13488,20 +13488,21 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) { ...@@ -13488,20 +13488,21 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) {
item.numFormatStr = cell.getNumFormatStr(); item.numFormatStr = cell.getNumFormatStr();
item.isDateTimeFormat = cell.getNumFormat().isDateTimeFormat(); item.isDateTimeFormat = cell.getNumFormat().isDateTimeFormat();
item.val = cell.getValue(); item.val = cell.getValue();
item.isHidden = (ws._getCol(c1).hd === true) || (ws._getRow(row).hd === true); colObject = ws._getColNoEmpty(c1);
rowObject = ws._getRowNoEmpty(row);
item.isHidden = !colObject || (colObject.hd === true) || !rowObject || (rowObject.hd === true);
cache.push(item); cache.push(item);
} }
} else /*r1 == r2*/ { // horizontal cache } else /*r1 == r2*/ { // horizontal cache
for (var col = c1; col <= c2; col++) { for (var col = c1; col <= c2; col++) {
cell = ws.getCell( new CellAddress(r1, col, 0) ); cell = ws.getCell( new CellAddress(r1, col, 0) );
item = {}; item = {};
item.numFormatStr = cell.getNumFormatStr(); item.numFormatStr = cell.getNumFormatStr();
item.isDateTimeFormat = cell.getNumFormat().isDateTimeFormat(); item.isDateTimeFormat = cell.getNumFormat().isDateTimeFormat();
item.val = cell.getValue(); item.val = cell.getValue();
item.isHidden = (ws._getCol(col).hd === true) || (ws._getRow(r1).hd === true); colObject = ws._getColNoEmpty(col);
rowObject = ws._getRowNoEmpty(r1);
item.isHidden = !colObject || (colObject.hd === true) || !rowObject || (rowObject.hd === true);
cache.push(item); cache.push(item);
} }
} }
...@@ -13517,6 +13518,7 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) { ...@@ -13517,6 +13518,7 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) {
c2: bbox.c2 c2: bbox.c2
}; };
var colObject, rowObject;
var bIsScatter = (c_oAscChartTypeSettings.scatter <= options.type && options.type <= c_oAscChartTypeSettings.scatterSmoothMarker); var bIsScatter = (c_oAscChartTypeSettings.scatter <= options.type && options.type <= c_oAscChartTypeSettings.scatterSmoothMarker);
var top_header_bbox, left_header_bbox, ser, startCell, endCell, formulaCell, seriaName, start, end, formula, numCache; var top_header_bbox, left_header_bbox, ser, startCell, endCell, formulaCell, seriaName, start, end, formula, numCache;
if (!options.getInColumns()) { if (!options.getInColumns()) {
...@@ -13535,7 +13537,8 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) { ...@@ -13535,7 +13537,8 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) {
startCell = new CellAddress(i, data_bbox.c1, 0); startCell = new CellAddress(i, data_bbox.c1, 0);
endCell = new CellAddress(i, data_bbox.c2, 0); endCell = new CellAddress(i, data_bbox.c2, 0);
if (ws._getRow(i).hd === true) rowObject = ws._getRowNoEmpty(i);
if (!rowObject || rowObject.hd === true)
ser.isHidden = true; ser.isHidden = true;
// Val // Val
...@@ -13595,7 +13598,8 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) { ...@@ -13595,7 +13598,8 @@ function getChartSeries (worksheet, options, catHeadersBBox, serHeadersBBox) {
startCell = new CellAddress(data_bbox.r1, i, 0); startCell = new CellAddress(data_bbox.r1, i, 0);
endCell = new CellAddress(data_bbox.r2, i, 0); endCell = new CellAddress(data_bbox.r2, i, 0);
if (ws._getCol(i).hd === true) colObject = ws._getColNoEmpty(i);
if (!colObject || colObject.hd === true)
ser.isHidden = true; ser.isHidden = true;
// Val // Val
......
...@@ -150,10 +150,8 @@ CImageShape.prototype = ...@@ -150,10 +150,8 @@ CImageShape.prototype =
sendMouseData: function() sendMouseData: function()
{ {
if ( true === this.Lock.Is_Locked() ) if ( true === this.Lock.Is_Locked() )
{ {
var MMData = new CMouseMoveData(); var MMData = new CMouseMoveData();
var Coords = editor.WordControl.m_oLogicDocument.DrawingDocument.ConvertCoordsToCursorWR(this.x, this.y, this.parent.num, null); var Coords = editor.WordControl.m_oLogicDocument.DrawingDocument.ConvertCoordsToCursorWR(this.x, this.y, this.parent.num, null);
MMData.X_abs = Coords.X - 5; MMData.X_abs = Coords.X - 5;
......
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