Commit d0232aab authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

bug 24809

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56687 954022d7-b5bf-4e40-9824-e11837661b57
parent beca46c8
......@@ -1398,8 +1398,14 @@ CFontSelect.prototype =
_len = fs.GetLong();
this.m_wsFontPath = fs.GetString(_len >> 1);
if (1 < this.m_wsFontPath.length)
this.m_wsFontPath = this.m_wsFontPath.substring(1);
// удаляем все, кроме имени файла
var _found1 = this.m_wsFontPath.lastIndexOf("/");
var _found2 = this.m_wsFontPath.lastIndexOf("\\");
var _found = Math.max(_found1, _found2);
if (0 <= _found)
this.m_wsFontPath = this.m_wsFontPath.substring(_found + 1);
this.m_lIndex = fs.GetLong();
......
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