Commit 40e9d340 authored by Oleg Korshul's avatar Oleg Korshul

surrogate symbol in input & copy (as text format)

parent edecc16f
...@@ -1464,7 +1464,7 @@ ...@@ -1464,7 +1464,7 @@
} }
else else
{ {
this.compositionValue.push(((_code & 0x3FF) << 10) | (_code2 & 0x3FF)); this.compositionValue.push(0x10000 + (((_code & 0x3FF) << 10) | (_code2 & 0x3FF)));
} }
} }
} }
......
...@@ -1990,7 +1990,11 @@ ParaRun.prototype.Get_SelectedText = function(bAll, bClearText, oPr) ...@@ -1990,7 +1990,11 @@ ParaRun.prototype.Get_SelectedText = function(bAll, bClearText, oPr)
break; break;
} }
case para_Text : Str += String.fromCharCode(Item.Value); break; case para_Text :
{
Str += AscCommon.encodeSurrogateChar(Item.Value);
break;
}
case para_Space: case para_Space:
case para_Tab : Str += " "; break; case para_Tab : Str += " "; break;
case para_End: case para_End:
......
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