Commit f1e1b412 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov

Исправлено падение в редакторе документов при открытии

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49027 954022d7-b5bf-4e40-9824-e11837661b57
parent a20ff393
......@@ -1504,10 +1504,12 @@ function arrReverse(arr) {
function drawChart(chart, arrValues, width, height) {
var data = arrValues;
var api = window["Asc"]["editor"];
var defaultXTitle = api.chartTranslate.xAxis;
var defaultYTitle = api.chartTranslate.yAxis;
var defaultTitle = api.chartTranslate.title;
var api_doc = window["editor"];
var api_sheet = window["Asc"]["editor"];
var defaultXTitle = api_sheet ? api_sheet.chartTranslate.xAxis : api_doc.chartTranslate.xAxis;
var defaultYTitle = api_sheet ? api_sheet.chartTranslate.yAxis : api_doc.chartTranslate.yAxis;
var defaultTitle = api_sheet ? api_sheet.chartTranslate.title : api_doc.chartTranslate.title;
if(OfficeExcel.drawingCtxCharts)
OfficeExcel.drawingCtxCharts.setCanvas(chartCanvas);
......
......@@ -538,6 +538,10 @@ function asc_docs_api(name)
// Spell Checking
this.SpellCheckApi = new CSpellCheckApi();
this.isSpellCheckEnable = true;
// Chart
this.chartTranslate = new asc_CChartTranslate();
/**************************************/
// AutoSave
......
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