Commit 7eb97922 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

убрана проверка на то, что может не быть данного шрифта в g_map_font_index для...

убрана проверка на то, что может не быть данного шрифта в g_map_font_index для открытия и вставки бинарника

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60956 954022d7-b5bf-4e40-9824-e11837661b57
parent 4cbbebe0
......@@ -3575,10 +3575,7 @@ function BinaryPPTYLoader()
}
case 3:
{
//проверка на то, что может не быть данного шрифта в g_map_font_index
typeface = s.GetString2();
if(window.g_map_font_index && window.g_map_font_index[typeface] === undefined && g_oThemeFontsName[typeface] === undefined)
typeface = "Arial";
break;
}
default:
......
......@@ -4175,13 +4175,8 @@
}
else if ( c_oSerFontTypes.Italic == type )
rPr.i = this.stream.GetBool();
else if ( c_oSerFontTypes.RFont == type ){
//проверка на то, что может не быть данного шрифта в g_map_font_index
var nameFont = this.stream.GetString2LE(length);
if(window.g_map_font_index && window.g_map_font_index[nameFont] === undefined)
nameFont = "Arial";
rPr.fn = nameFont;
}
else if ( c_oSerFontTypes.RFont == type )
rPr.fn = this.stream.GetString2LE(length);
else if ( c_oSerFontTypes.Strike == type )
rPr.s = this.stream.GetBool();
else if ( c_oSerFontTypes.Sz == type )
......
......@@ -6287,46 +6287,22 @@ function Binary_rPrReader(doc, stream)
case c_oSerProp_rPrType.FontAscii:
if ( undefined === rPr.RFonts )
rPr.RFonts = {};
//проверка на то, что может не быть данного шрифта в g_map_font_index
var nameFont = this.stream.GetString2LE(length);
if(window.g_map_font_index && window.g_map_font_index[nameFont] === undefined)
nameFont = "Arial";
rPr.RFonts.Ascii = { Name : nameFont, Index : -1 };
rPr.RFonts.Ascii = { Name : this.stream.GetString2LE(length), Index : -1 };
break;
case c_oSerProp_rPrType.FontHAnsi:
if ( undefined === rPr.RFonts )
rPr.RFonts = {};
//проверка на то, что может не быть данного шрифта в g_map_font_index
var nameFont = this.stream.GetString2LE(length);
if(window.g_map_font_index && window.g_map_font_index[nameFont] === undefined)
nameFont = "Arial";
rPr.RFonts.HAnsi = { Name : nameFont, Index : -1 };
rPr.RFonts.HAnsi = { Name : this.stream.GetString2LE(length), Index : -1 };
break;
case c_oSerProp_rPrType.FontAE:
if ( undefined === rPr.RFonts )
rPr.RFonts = {};
//проверка на то, что может не быть данного шрифта в g_map_font_index
var nameFont = this.stream.GetString2LE(length);
if(window.g_map_font_index && window.g_map_font_index[nameFont] === undefined)
nameFont = "Arial";
rPr.RFonts.EastAsia = { Name : nameFont, Index : -1 };
rPr.RFonts.EastAsia = { Name : this.stream.GetString2LE(length), Index : -1 };
break;
case c_oSerProp_rPrType.FontCS:
if ( undefined === rPr.RFonts )
rPr.RFonts = {};
//проверка на то, что может не быть данного шрифта в g_map_font_index
var nameFont = this.stream.GetString2LE(length);
if(window.g_map_font_index && window.g_map_font_index[nameFont] === undefined)
nameFont = "Arial";
rPr.RFonts.CS = { Name : nameFont, Index : -1 };
rPr.RFonts.CS = { Name : this.stream.GetString2LE(length), Index : -1 };
break;
case c_oSerProp_rPrType.FontSize:
rPr.FontSize = this.stream.GetULongLE() / 2;
......
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