https://bugs.documentfoundation.org/show_bug.cgi?id=91228

--- Comment #4 from Philippe Jung <[email protected]> ---
Taking a writer doc with just an image anchored as character, the GetDoc Nodes
are:
 count=14
 rNodes[0]=0x2943c90
 rNodes[1]=0x296c2a0
 rNodes[2]=0x2956330
 rNodes[3]=0x294abe0
 rNodes[4]=0x2944fa0
 rNodes[5]=0x2a116e0
 rNodes[6]=0x2a10d10
 rNodes[7]=0x2a0fe90
 rNodes[8]=0x2951750
 rNodes[9]=0x296bec0
 rNodes[10]=0x295ac30
 rNodes[11]=0x295ad50
 rNodes[12]=0x297b7a0
 There is a fly anchored in pNode
 rAnchor.GetContentAnchor()->nNode 12
 rNodes[13]=0x296b300

When I go after the image and press Return, the GetDoc Nodes are:
 count=15
 rNodes[0]=0x2943c90
 rNodes[1]=0x296c2a0
 rNodes[2]=0x2956330
 rNodes[3]=0x294abe0
 rNodes[4]=0x2944fa0
 rNodes[5]=0x2a116e0
 rNodes[6]=0x2a10d10
 rNodes[7]=0x2a0fe90
 rNodes[8]=0x2951750
 rNodes[9]=0x296bec0
 rNodes[10]=0x295ac30
 rNodes[11]=0x295ad50
 rNodes[12]=0x2f1a220
 rNodes[13]=0x297b7a0
 There is a fly anchored in pNode
 rAnchor.GetContentAnchor()->nNode 12

rNodes 12 has become 13, new node inserted in 12.
But the FlyFrame (at pos 13) is still referencing nNode 12.

Either new node has to be inserted After the FlyFrame or nNode has to be
updated during insert.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to