Commit 980802c6 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug #31841 - Ошибка в консоли при смене типа диаграммы на 3D диаграмму в xlsx файле;

Bug #31845 - Размер текста в слайде неправильный

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68709 954022d7-b5bf-4e40-9824-e11837661b57
parent f506cdc6
...@@ -5400,12 +5400,15 @@ CChartSpace.prototype = ...@@ -5400,12 +5400,15 @@ 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];
if(oLabel)
{
deltaX = oLabel.localTransformText.tx - oCatAx.xPoints[i].pos; deltaX = oLabel.localTransformText.tx - oCatAx.xPoints[i].pos;
deltaY = oLabel.localTransformText.ty - oAxisLabels.y; deltaY = oLabel.localTransformText.ty - oAxisLabels.y;
oNewPos = oCatAx.transformXPoints[i]; oNewPos = oCatAx.transformXPoints[i];
oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
} }
}
oAxisLabels = oValAx.labels; oAxisLabels = oValAx.labels;
...@@ -5414,12 +5417,15 @@ CChartSpace.prototype = ...@@ -5414,12 +5417,15 @@ 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];
if(oLabel)
{
deltaX = oLabel.localTransformText.tx - oAxisLabels.x; deltaX = oLabel.localTransformText.tx - oAxisLabels.x;
deltaY = oLabel.localTransformText.ty - oValAx.yPoints[i].pos; deltaY = oLabel.localTransformText.ty - oValAx.yPoints[i].pos;
oNewPos = oValAx.transformYPoints[i]; oNewPos = oValAx.transformYPoints[i];
oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
} }
}
} }
else if(((oCatAx.axPos === AX_POS_L || oCatAx.axPos === AX_POS_R) && oCatAx.transformYPoints && oCatAx.yPoints) && else if(((oCatAx.axPos === AX_POS_L || oCatAx.axPos === AX_POS_R) && oCatAx.transformYPoints && oCatAx.yPoints) &&
...@@ -5432,12 +5438,15 @@ CChartSpace.prototype = ...@@ -5432,12 +5438,15 @@ 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];
if(oLabel)
{
deltaX = oLabel.localTransformText.tx - oValAx.xPoints[i].pos; deltaX = oLabel.localTransformText.tx - oValAx.xPoints[i].pos;
deltaY = oLabel.localTransformText.ty - oAxisLabels.y; deltaY = oLabel.localTransformText.ty - oAxisLabels.y;
oNewPos = oValAx.transformXPoints[i]; oNewPos = oValAx.transformXPoints[i];
oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY); oLabel.setPosition2(oNewPos.x + deltaX, oNewPos.y + deltaY);
} }
} }
}
oAxisLabels = oCatAx.labels; oAxisLabels = oCatAx.labels;
...@@ -5447,6 +5456,8 @@ CChartSpace.prototype = ...@@ -5447,6 +5456,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];
if(oLabel)
{
deltaX = oLabel.localTransformText.tx - oAxisLabels.x; deltaX = oLabel.localTransformText.tx - oAxisLabels.x;
deltaY = oLabel.localTransformText.ty - oCatAx.yPoints[i].pos; deltaY = oLabel.localTransformText.ty - oCatAx.yPoints[i].pos;
oNewPos = oCatAx.transformYPoints[i]; oNewPos = oCatAx.transformYPoints[i];
...@@ -5456,6 +5467,7 @@ CChartSpace.prototype = ...@@ -5456,6 +5467,7 @@ CChartSpace.prototype =
} }
} }
} }
}
}, },
hitInTextRect: function() hitInTextRect: function()
......
...@@ -473,7 +473,17 @@ CTextBody.prototype = ...@@ -473,7 +473,17 @@ CTextBody.prototype =
} }
if(isRealNumber(font_scale)) if(isRealNumber(font_scale))
{ {
var bReset = false;
if(g_oIdCounter.m_bLoad)
{
bReset = true;
g_oIdCounter.m_bLoad = false;
}
var redFontSize = Math.round(parg.Get_CompiledPr(false).TextPr.FontSize*font_scale); var redFontSize = Math.round(parg.Get_CompiledPr(false).TextPr.FontSize*font_scale);
if(bReset)
{
g_oIdCounter.m_bLoad = true;
}
this.checkParagraphContent(parg, font_scale, true, redFontSize); this.checkParagraphContent(parg, font_scale, true, redFontSize);
} }
} }
......
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