Commit fc625cb5 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил проверку при вставке(ограничил максимальный/минимальный размер шрифта)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62734 954022d7-b5bf-4e40-9824-e11837661b57
parent a0fcce52
...@@ -5623,6 +5623,13 @@ PasteProcessor.prototype = ...@@ -5623,6 +5623,13 @@ PasteProcessor.prototype =
font_size = Math.round(font_size * g_dKoef_mm_to_pt); font_size = Math.round(font_size * g_dKoef_mm_to_pt);
else else
font_size = Math.round(2 * font_size * g_dKoef_mm_to_pt) / 2;//���������� �������� ���������. font_size = Math.round(2 * font_size * g_dKoef_mm_to_pt) / 2;//���������� �������� ���������.
//TODO use constant
if(font_size > 300)
font_size = 300;
else if(font_size === 0)
font_size = 1;
rPr.FontSize = font_size; rPr.FontSize = font_size;
} }
} }
......
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