Commit 2811ec4c authored by Oleg.Korshul's avatar Oleg.Korshul

zoomIn/out & pdf crash

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64809 954022d7-b5bf-4e40-9824-e11837661b57
parent ad87caaf
...@@ -1070,6 +1070,9 @@ function CEditorPage(api) ...@@ -1070,6 +1070,9 @@ function CEditorPage(api)
break; break;
} }
} }
if (oThis.m_nZoomValue <= _Zoom)
return;
var _old_val = oThis.m_nZoomValue; var _old_val = oThis.m_nZoomValue;
oThis.m_nZoomValue = _Zoom; oThis.m_nZoomValue = _Zoom;
...@@ -1095,6 +1098,9 @@ function CEditorPage(api) ...@@ -1095,6 +1098,9 @@ function CEditorPage(api)
break; break;
} }
} }
if (oThis.m_nZoomValue >= _Zoom)
return;
var _old_val = oThis.m_nZoomValue; var _old_val = oThis.m_nZoomValue;
oThis.m_nZoomValue = _Zoom; oThis.m_nZoomValue = _Zoom;
......
...@@ -5741,13 +5741,9 @@ asc_docs_api.prototype.GenerateStyles = function() ...@@ -5741,13 +5741,9 @@ asc_docs_api.prototype.GenerateStyles = function()
} }
var StylesPainter = new CStylesPainter(); var StylesPainter = new CStylesPainter();
if (null == this.LoadedObject && null != this.WordControl.m_oLogicDocument) if (null != this.WordControl.m_oLogicDocument)
{
StylesPainter.GenerateStyles(this, this.WordControl.m_oLogicDocument.Get_Styles().Style);
}
else
{ {
StylesPainter.GenerateStyles(this, this.LoadedObjectDS); StylesPainter.GenerateStyles(this, (null == this.LoadedObject) ? this.WordControl.m_oLogicDocument.Get_Styles().Style : this.LoadedObjectDS);
} }
}; };
asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function() asc_docs_api.prototype.asyncFontsDocumentEndLoaded = function()
......
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