Description: I created a button in Writer with a very simple Output-Macro Steps to Reproduce: 1.open a new Writer-Document 2.creat a Button 3.creat simple msgbox-macro 4.link the botton with macro 5.test the macro 6.fill Writer with a simple text. 7.move the button to another place within the document 8.you can move it, but the old botton is already on its old position too 9. try to delete the old button failed Actual Results: same problem Expected Results: moving the button on its new place and delete the old one Reproducible: Always User Profile Reset: No Additional Info: [Information automatically included from LibreOffice] Locale: de Module: TextDocument [Information guessed from browser] OS: Windows 10 OS is 64bit: yes Version: 7.0.5.2 (x64) Build ID: 64390860c6cd0aca4beafafcfd84613dd9dfb63a CPU threads: 4; OS: Windows 10.0 Build 7600; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: threaded
Created attachment 172029 [details] The Writer document
Changing any property of the button (position, size, state...) adds a copy; the original control cannot be deleted. Version: 7.0.6.2 Build ID: 00(Build:2) CPU threads: 8; OS: Linux 5.12; UI render: default; VCL: kf5 Locale: de-DE (en_US.UTF-8); UI: en-US 7.0.6-1 Calc: threaded Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 40545189e73f404245ac56a5c8ac0f2afe7987fd CPU threads: 8; OS: Linux 5.12; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
attachment 172029 [details] has 22 copies of a button in the same place. I tested reproducing this and found the reason: if the button is anchored to paragraph or to character and you copy the example paragraph you wrote that it is anchored to, pasting the paragraph will create copies of the button. You can easily observe this in the Navigator in the Sidebar. I found this selection handling changed in version 7.0 with 91b2325808a75174f284c48c8b8afc118fad74e4 tdf#121300 sw: consistent fly at-pargraph selection So I don't think we can call this a bug.