[DE] Fix adding table of contents.

This commit is contained in:
Julia Radzhabova 2018-01-24 13:05:11 +03:00
parent d628dc7518
commit 5cf94b8ca9

View file

@ -214,7 +214,7 @@ define([
props.put_ShowPageNumbers(true); props.put_ShowPageNumbers(true);
props.put_RightAlignTab(true); props.put_RightAlignTab(true);
props.put_TabLeader( Asc.c_oAscTabLeader.Dot); props.put_TabLeader( Asc.c_oAscTabLeader.Dot);
(hasTable) ? this.api.asc_SetTableOfContentsPr(props) : this.api.asc_AddTableOfContents(null, props); this.api.asc_AddTableOfContents(null, props);
break; break;
case 1: case 1:
var props = this.api.asc_GetTableOfContentsPr(), var props = this.api.asc_GetTableOfContentsPr(),
@ -226,7 +226,7 @@ define([
props.put_Hyperlink(true); props.put_Hyperlink(true);
props.put_ShowPageNumbers(false); props.put_ShowPageNumbers(false);
props.put_TabLeader( Asc.c_oAscTabLeader.None); props.put_TabLeader( Asc.c_oAscTabLeader.None);
(hasTable) ? this.api.asc_SetTableOfContentsPr(props) : this.api.asc_AddTableOfContents(null, props); this.api.asc_AddTableOfContents(null, props);
break; break;
case 'settings': case 'settings':
var props = this.api.asc_GetTableOfContentsPr(), var props = this.api.asc_GetTableOfContentsPr(),