Bug 141567 - Copy and Paste in Basic Editor pastes text twice
Summary: Copy and Paste in Basic Editor pastes text twice
Status: RESOLVED DUPLICATE of bug 140652
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
7.1.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-08 16:57 UTC by Rafael Lima
Modified: 2021-08-02 22:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2021-04-08 16:57:14 UTC
I am using LO 7.1.2.2 in KDE (Kubuntu 20.10) and I'm experiencing a Copy and Paste bug. Whenever I'm editing code in the Basic Editor, if I copy a snippet of code and try to paste it somewhere else inside the Editor, it pastes twice.

For example, consider the following line of code:
Sub Main

If I copy this line and paste it, I'll get:
Sub MainSub Main

However, if I copy the code from the Basic Editor and paste it in another application (e.g. Kate), it pastes just once, as expected.

Can anyone else confirm this bug?

Version: 7.1.2.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 16; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.2~rc2-0ubuntu0.20.10.1~lo3
Calc: threaded
Comment 1 Olivier Hallot 2021-04-11 21:25:31 UTC
This bug affects the whole LibreOffice under KDE

Version: 7.1.1.2 / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 16; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: pt-BR (en_US.UTF-8); UI: pt-BR
Calc: CL

Operating System: Kubuntu 20.10
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Kernel Version: 5.8.0-48-generic
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GT 710/PCIe/SSE2
Comment 2 Olivier Hallot 2021-04-12 09:58:32 UTC
Issue does not happen with

Sistema operacional: Kubuntu 20.04
Versão do KDE Plasma: 5.18.5
Versão do KDE Frameworks: 5.68.0
Versão da Qt: 5.12.8
Versão do kernel: 5.4.0-70-generic
Tipo de sistema operacional: 64 bits
Processadores: 8 × Intel® Core™ i7-3632QM CPU @ 2.20GHz
Memória: 7,7 GiB de RAM
Comment 3 Rafael Lima 2021-04-28 17:23:47 UTC
I have just figured out a workaround that prevents double pasting.

I am using the Tabbed interface and sometimes I enable the MenuBar (alongside the Tabs). Whenever the MenuBar is enable, pasting occurs twice in any LO component.

However, if I hide the menubar, double pasting stops.

The only sad thing is that the Basic Editor has a menubar and it's not possible to hide it, so this workaround does not fix the Basic editor.
Comment 4 Olivier Hallot 2021-05-19 15:29:38 UTC
does not happen with gen interface:

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 5d8ac801c00fbf1dc16ee8dbfe8167baf7ea0ce0
CPU threads: 16; OS: Linux 5.11; UI render: Skia/Raster; VCL: x11
Locale: en-US (en_US.UTF-8); UI: pt-BR
Calc: threaded
Comment 5 Olivier Hallot 2021-05-19 15:55:47 UTC
I found that Ctrl+ V paste twice, 

(Ctrl+C, Ctrl+V are usual copy&paste for 99.99% of users).

but

Shft-Ins does not paste twice.

(Ctrl+Ins and Shift+Ins are for the rest of users)
Comment 6 Olivier Hallot 2021-08-02 22:04:23 UTC

*** This bug has been marked as a duplicate of bug 140652 ***