Bug 164916 - Using cut, paste or drag & drop in the IDE allows to modify a running program
Summary: Using cut, paste or drag & drop in the IDE allows to modify a running program
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All macOS (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2025-01-29 10:37 UTC by Cekomote
Modified: 2025-01-29 12:59 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 Cekomote 2025-01-29 10:37:59 UTC
Description:
When a BASIC program runs, user is not allowed to modify it. Trying to do so results in a dialog box "You will have to restart the program after this edit. Continue ?". But using cut, paste or drag & drop allows the user to modify the running program without warning.

Steps to Reproduce:
1. Open the macro editor and run a program that takes a while, like
Sub Main
 Do
  Wait 1000
 Loop
End Sub
2. Try to change the code while it is running using cut, paste (keyboard shortcut, main menu or contextual menu) or drag & drop

Actual Results:
The code can be changed at will without warning

Expected Results:
The same warning dialog box as when a keyboard input occurs should be opened


Reproducible: Always


User Profile Reset: No

Additional Info:
Same behavior on Ubuntu & MacOS.

Version: 24.2.7.2 (AARCH64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.2
Calc: threaded
Comment 1 Rafael Lima 2025-01-29 12:59:24 UTC
Repro with

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:24.8.4-0ubuntu0.24.10.2
Calc: threaded

This seems like a bug to me. Setting to NEW.