Commit afc1e5b0 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Сделано, чтобы функция MathToImageConverter правильно отлючала историю во время исполнения.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59212 954022d7-b5bf-4e40-9824-e11837661b57
parent 745f8f2b
...@@ -1011,8 +1011,18 @@ ParaMath.prototype.NeedCompiledCtrPr = function() ...@@ -1011,8 +1011,18 @@ ParaMath.prototype.NeedCompiledCtrPr = function()
}; };
ParaMath.prototype.MathToImageConverter = function(bCopy) ParaMath.prototype.MathToImageConverter = function(bCopy)
{ {
g_oTableId.m_bTurnOff = true; var bTurnOnId = false, bTurnOnHistory = false;
History.TurnOff(); if (false === g_oTableId.m_bTurnOff)
{
g_oTableId.m_bTurnOff = true;
bTurnOnId = true;
}
if (true === History.Is_On())
{
bTurnOnHistory = true;
History.TurnOff();
}
var oldDefTabStop = Default_Tab_Stop; var oldDefTabStop = Default_Tab_Stop;
Default_Tab_Stop = 1; Default_Tab_Stop = 1;
...@@ -1055,7 +1065,10 @@ ParaMath.prototype.MathToImageConverter = function(bCopy) ...@@ -1055,7 +1065,10 @@ ParaMath.prototype.MathToImageConverter = function(bCopy)
Default_Tab_Stop = oldDefTabStop; Default_Tab_Stop = oldDefTabStop;
g_oTableId.m_bTurnOff = false; if (true === bTurnOnId)
g_oTableId.m_bTurnOff = false;
if (true === bTurnOnHistory)
History.TurnOn(); History.TurnOn();
window.IsShapeToImageConverter = true; window.IsShapeToImageConverter = 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