Commit 00af61e4 authored by GoshaZotov's avatar GoshaZotov

fix bug 35186

parent aae1b5ec
...@@ -2061,7 +2061,7 @@ PasteProcessor.prototype = ...@@ -2061,7 +2061,7 @@ PasteProcessor.prototype =
//TODO пересмотреть pasteTypeContent //TODO пересмотреть pasteTypeContent
this.pasteTypeContent = null; this.pasteTypeContent = null;
var oSelectedContent = new CSelectedContent(); var oSelectedContent = new CSelectedContent();
for (var i = 0, length = aNewContent.length; i < length; ++i) { for (var i = 0; i < aNewContent.length; ++i) {
if(window['AscCommon'].g_clipboardBase.specialPasteStart) if(window['AscCommon'].g_clipboardBase.specialPasteStart)
{ {
var parseItem = this._specialPasteItemConvert(aNewContent[i]); var parseItem = this._specialPasteItemConvert(aNewContent[i]);
...@@ -2078,7 +2078,6 @@ PasteProcessor.prototype = ...@@ -2078,7 +2078,6 @@ PasteProcessor.prototype =
aNewContent.splice(i + j, 0, parseItem[j]); aNewContent.splice(i + j, 0, parseItem[j]);
} }
} }
} }
} }
...@@ -2095,7 +2094,7 @@ PasteProcessor.prototype = ...@@ -2095,7 +2094,7 @@ PasteProcessor.prototype =
this.pasteTypeContent = null; this.pasteTypeContent = null;
} }
if (i === length - 1 && true != this.bInBlock && type_Paragraph === oSelectedElement.Element.GetType()) if (i === aNewContent.length - 1 && true != this.bInBlock && type_Paragraph === oSelectedElement.Element.GetType())
oSelectedElement.SelectedAll = false; oSelectedElement.SelectedAll = false;
else else
oSelectedElement.SelectedAll = true; oSelectedElement.SelectedAll = true;
...@@ -2853,7 +2852,7 @@ PasteProcessor.prototype = ...@@ -2853,7 +2852,7 @@ PasteProcessor.prototype =
Item.Set_CharCode(nUnicode); Item.Set_CharCode(nUnicode);
bIsSpace = false; bIsSpace = false;
} }
else if(0x20 === nUnicode){ else if(0x2009 === nUnicode){
Item = new ParaTab(); Item = new ParaTab();
} }
else else
......
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