Description: The UNDO feature (CTRL-Z) does not remove a pasted image when copy-pasting between documents. It's nearly the same issue as in Calc (bug 39217). However the steps to reproduce for bug 39217 don't work in Writer and it's related to copy/pasting from browser. Steps to Reproduce: 1.Open attached file 2. Select All: CTRL+A 3. Create a new Writer Document (CTRL+N) 4. Paste (CTRL+V) 5. Undo paste (CTRL+Z) Actual Results: UNDO for inserted text is OK UNDO for inserted image is not OK: image stays in the document Expected Results: Image should be deleted Reproducible: Always User Profile Reset: No Additional Info: Found in: Version: 5.4.0.0.alpha0+ Build ID: a296a69c984b17cfbcd249cf6bdc191d08dff2a6 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; TinderBox: Win-x86@42, Branch:master, Time: 2017-02-06_00:00:55 Locale: nl-NL (nl_NL); Calc: group and in LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Created attachment 131126 [details] Example file
Confirmed in Version: 5.4.0.0.alpha0+ Build ID: a25b1ff25a3be97d688d66b12353b4217fd239a5 CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; Locale: ca-ES (ca_ES.UTF-8); Calc: group
This looks like a duplicate of the bug 81779. It also occurs only if the image(s) are anchored to the last paragraph in LO 5.2.5 on x64 Ubuntu. (If one introduces a hard line break after the anchor, thereby making the images being anchored to the second-last paragraph, then the issue does not appear.) Please feel free to reopen if you disagree. *** This bug has been marked as a duplicate of bug 81779 ***