Commit b072b45d authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent aa20e8a5
......@@ -239489,7 +239489,7 @@ CDocumentContent.prototype =
Get_SelectionBounds : function()
{
if (true === this.Selection.Use)
if (true === this.Selection.Use && selectionflag_Common === this.Selection.Flag)
{
var Start = this.Selection.StartPos;
var End = this.Selection.EndPos;
......@@ -366544,7 +366544,12 @@ asc_docs_api.prototype.UpdateTextPr = function(TextPr)
_stream["WriteDouble2"](TextPr.FontSize);
}
if (TextPr.Color !== undefined)
if(TextPr.Unifill && TextPr.Unifill.fill && TextPr.Unifill.fill.type === FILL_TYPE_SOLID && TextPr.Unifill.fill.color)
{
var _color = CreateAscColor(TextPr.Unifill.fill.color);
asc_menu_WriteColor(6, CreateAscColorCustom(_color.r, _color.g, _color.b, false), _stream);
}
else if (TextPr.Color !== undefined)
{
asc_menu_WriteColor(6, CreateAscColorCustom(TextPr.Color.r, TextPr.Color.g, TextPr.Color.b, TextPr.Color.Auto), _stream);
}
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