Commit 06f88d63 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug #31565 - [Copy&Paste] Не отрисовываются название осей диаграммы после...

Bug #31565 - [Copy&Paste] Не отрисовываются название осей диаграммы после вставки текста в заголовке 

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68085 954022d7-b5bf-4e40-9824-e11837661b57
parent f958e35d
...@@ -5392,8 +5392,8 @@ CChartSpace.prototype = ...@@ -5392,8 +5392,8 @@ CChartSpace.prototype =
for(i = 0; i < oAxisLabels.arrLabels.length; ++i) for(i = 0; i < oAxisLabels.arrLabels.length; ++i)
{ {
oLabel = oAxisLabels.arrLabels[i]; oLabel = oAxisLabels.arrLabels[i];
deltaX = oLabel.transformText.tx - oCatAx.xPoints[i].pos; deltaX = oLabel.localTransformText.tx - oCatAx.xPoints[i].pos;
deltaY = oLabel.transformText.ty - oAxisLabels.y; deltaY = oLabel.localTransformText.ty - oAxisLabels.y;
oNewPos = oCatAx.transformXPoints[i]; oNewPos = oCatAx.transformXPoints[i];
oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
...@@ -5406,8 +5406,8 @@ CChartSpace.prototype = ...@@ -5406,8 +5406,8 @@ CChartSpace.prototype =
for(i = 0; i < oAxisLabels.arrLabels.length; ++i) for(i = 0; i < oAxisLabels.arrLabels.length; ++i)
{ {
oLabel = oAxisLabels.arrLabels[i]; oLabel = oAxisLabels.arrLabels[i];
deltaX = oLabel.transformText.tx - oAxisLabels.x; deltaX = oLabel.localTransformText.tx - oAxisLabels.x;
deltaY = oLabel.transformText.ty - oValAx.yPoints[i].pos; deltaY = oLabel.localTransformText.ty - oValAx.yPoints[i].pos;
oNewPos = oValAx.transformYPoints[i]; oNewPos = oValAx.transformYPoints[i];
oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
...@@ -5424,8 +5424,8 @@ CChartSpace.prototype = ...@@ -5424,8 +5424,8 @@ CChartSpace.prototype =
for(i = 0; i < oAxisLabels.arrLabels.length; ++i) for(i = 0; i < oAxisLabels.arrLabels.length; ++i)
{ {
oLabel = oAxisLabels.arrLabels[i]; oLabel = oAxisLabels.arrLabels[i];
deltaX = oLabel.transformText.tx - oValAx.xPoints[i].pos; deltaX = oLabel.localTransformText.tx - oValAx.xPoints[i].pos;
deltaY = oLabel.transformText.ty - oAxisLabels.y; deltaY = oLabel.localTransformText.ty - oAxisLabels.y;
oNewPos = oValAx.transformXPoints[i]; oNewPos = oValAx.transformXPoints[i];
oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
...@@ -5439,8 +5439,8 @@ CChartSpace.prototype = ...@@ -5439,8 +5439,8 @@ CChartSpace.prototype =
for(i = 0; i < oAxisLabels.arrLabels.length; ++i) for(i = 0; i < oAxisLabels.arrLabels.length; ++i)
{ {
oLabel = oAxisLabels.arrLabels[i]; oLabel = oAxisLabels.arrLabels[i];
deltaX = oLabel.transformText.tx - oAxisLabels.x; deltaX = oLabel.localTransformText.tx - oAxisLabels.x;
deltaY = oLabel.transformText.ty - oCatAx.yPoints[i].pos; deltaY = oLabel.localTransformText.ty - oCatAx.yPoints[i].pos;
oNewPos = oCatAx.transformYPoints[i]; oNewPos = oCatAx.transformYPoints[i];
oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
......
...@@ -255,6 +255,7 @@ CChartSpace.prototype.recalculate = function() ...@@ -255,6 +255,7 @@ CChartSpace.prototype.recalculate = function()
this.recalcInfo.bRecalculatedTitle = true; this.recalcInfo.bRecalculatedTitle = true;
} }
var b_transform = false; var b_transform = false;
var bCheckLabels = false;
if(this.recalcInfo.recalculateTransform) if(this.recalcInfo.recalculateTransform)
{ {
this.recalculateTransform(); this.recalculateTransform();
...@@ -359,6 +360,7 @@ CChartSpace.prototype.recalculate = function() ...@@ -359,6 +360,7 @@ CChartSpace.prototype.recalculate = function()
{ {
this.recalculateAxis(); this.recalculateAxis();
this.recalcInfo.recalculateAxisVal = false; this.recalcInfo.recalculateAxisVal = false;
bCheckLabels = true;
} }
...@@ -373,7 +375,10 @@ CChartSpace.prototype.recalculate = function() ...@@ -373,7 +375,10 @@ CChartSpace.prototype.recalculate = function()
{ {
this.recalculateChart(); this.recalculateChart();
this.recalcInfo.recalculateChart = false; this.recalcInfo.recalculateChart = false;
this.checkAxisLabelsTransform(); if(bCheckLabels)
{
this.checkAxisLabelsTransform();
}
} }
......
...@@ -467,7 +467,7 @@ CHistory.prototype.Get_RecalcData = function(Point2) ...@@ -467,7 +467,7 @@ CHistory.prototype.Get_RecalcData = function(Point2)
if ( /*true === Item.NeedRecalc*/ Item.Class && Item.Class.Refresh_RecalcData ) if ( /*true === Item.NeedRecalc*/ Item.Class && Item.Class.Refresh_RecalcData )
Item.Class.Refresh_RecalcData( Item.Data ); Item.Class.Refresh_RecalcData( Item.Data );
if(Item.Type === historyitem_Workbook_ChangeColorScheme) if(Item.Type === historyitem_Workbook_ChangeColorScheme && Item.Class === g_oUndoRedoWorkbook)
{ {
var wsViews = Asc["editor"].wb.wsViews; var wsViews = Asc["editor"].wb.wsViews;
for(var i = 0; i < wsViews.length; ++i) for(var i = 0; i < wsViews.length; ++i)
......
...@@ -347,6 +347,7 @@ CChartSpace.prototype.recalculate = function() ...@@ -347,6 +347,7 @@ CChartSpace.prototype.recalculate = function()
this.recalcInfo.bRecalculatedTitle = true; this.recalcInfo.bRecalculatedTitle = true;
} }
var b_transform = false; var b_transform = false;
var bCheckLabels = false;
if(this.recalcInfo.recalculateTransform) if(this.recalcInfo.recalculateTransform)
{ {
this.recalculateTransform(); this.recalculateTransform();
...@@ -449,6 +450,8 @@ CChartSpace.prototype.recalculate = function() ...@@ -449,6 +450,8 @@ CChartSpace.prototype.recalculate = function()
if(this.recalcInfo.recalculateAxisVal) if(this.recalcInfo.recalculateAxisVal)
{ {
bCheckLabels = true;
this.recalculateAxis(); this.recalculateAxis();
this.recalcInfo.recalculateAxisVal = false; this.recalcInfo.recalculateAxisVal = false;
} }
...@@ -465,7 +468,10 @@ CChartSpace.prototype.recalculate = function() ...@@ -465,7 +468,10 @@ CChartSpace.prototype.recalculate = function()
{ {
this.recalculateChart(); this.recalculateChart();
this.recalcInfo.recalculateChart = false; this.recalcInfo.recalculateChart = false;
this.checkAxisLabelsTransform(); if(bCheckLabels)
{
this.checkAxisLabelsTransform();
}
} }
......
...@@ -263,6 +263,8 @@ CChartSpace.prototype.recalculate = function() ...@@ -263,6 +263,8 @@ CChartSpace.prototype.recalculate = function()
} }
this.updateLinks(); this.updateLinks();
var bCheckLabels = false;
if(this.recalcInfo.recalcTitle) if(this.recalcInfo.recalcTitle)
{ {
this.recalculateChartTitleEditMode(true); this.recalculateChartTitleEditMode(true);
...@@ -366,6 +368,7 @@ CChartSpace.prototype.recalculate = function() ...@@ -366,6 +368,7 @@ CChartSpace.prototype.recalculate = function()
{ {
this.recalculateAxis(); this.recalculateAxis();
this.recalcInfo.recalculateAxisVal = false; this.recalcInfo.recalculateAxisVal = false;
bCheckLabels = true;
} }
if(this.recalcInfo.recalculatePenBrush) if(this.recalcInfo.recalculatePenBrush)
...@@ -378,7 +381,10 @@ CChartSpace.prototype.recalculate = function() ...@@ -378,7 +381,10 @@ CChartSpace.prototype.recalculate = function()
{ {
this.recalculateChart(); this.recalculateChart();
this.recalcInfo.recalculateChart = false; this.recalcInfo.recalculateChart = false;
this.checkAxisLabelsTransform(); if(bCheckLabels)
{
this.checkAxisLabelsTransform();
}
} }
for(var i = 0; i < this.recalcInfo.dataLbls.length; ++i) for(var i = 0; i < this.recalcInfo.dataLbls.length; ++i)
......
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