lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit cb74be9d authored by GoshaZotov's avatar GoshaZotov

add checking into special paste(AnchorPosition)

parent 02f9320b
...@@ -1049,8 +1049,14 @@ ...@@ -1049,8 +1049,14 @@
} }
else else
{ {
_Y = elem.Y + elem.AnchorPosition.H; var w = 0, h = 0;
_X = elem.X + elem.AnchorPosition.W; if(elem.AnchorPosition)
{
h = elem.AnchorPosition.H;
w = elem.AnchorPosition.W;
}
_Y = elem.Y + h;
_X = elem.X + w;
} }
var _PageNum = this.Api.WordControl.m_oLogicDocument.CurPage; var _PageNum = this.Api.WordControl.m_oLogicDocument.CurPage;
......
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