Bug 164483 - QRCode: Dialog for creating Code won't stop executing of Basic macro for input
Summary: QRCode: Dialog for creating Code won't stop executing of Basic macro for input
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: QR-code
  Show dependency treegraph
 
Reported: 2024-12-27 14:54 UTC by Robert Großkopf
Modified: 2025-10-14 18:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Unzip files. Start database - macros enabled. Follow instruction. (663.33 KB, application/zip)
2024-12-27 14:54 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2024-12-27 14:54:58 UTC
Created attachment 198288 [details]
Unzip files. Start database - macros enabled. Follow instruction.

Internal QRCode generator works only with .uno:InsertQrCode and .uno:EditQrCode
I have created a QR-Code for invoices and wanted to change the code by .uno:EditQrCode.

1. The dialog appears and I have to press OK for running the procedure for creating the code. No way to do this without any dialog.

2. Dialog wont stop executing of Basic like it is done my a messagebox. The code will step forward and the invoice will be saved without the changed barcode. I have to add WAIT(5000) to get a chance to press OK and save the invoice with right barcode.

This bug is about the behavior 2. A dialog, which has been started by a procedure in Basic, should stop executing following code of the same macro.

Will attach the database and a template to show the behavior. There must be set Macro execution on. A form will appear. Press "Rechnung erstellen". It will be created by the template. QR-Code-dialog will appear. Wait 5000 will stop the code for 5 seconds. Wait and the next message appears (saving and sending mail). Code works on while dialog for QR-Code is open.
Comment 1 Buovjaga 2025-10-13 19:45:08 UTC
I get an exception of type: com.sun.star.util.MalformedNumberFormatException for line 629 of Druck:

IF loFormatKey = -1 THEN loFormatKey = oNumberFormats.addNew(stNumberFormat, aLocale)

Arch Linux 64-bit
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d0e936765b1b68d614271642629df6c615c7e9ae
CPU threads: 8; OS: Linux 6.17; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 8 October 2025
Comment 2 Robert Großkopf 2025-10-14 09:34:26 UTC
Have tested the attached Zip file with 
Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

No error appears. Only QR-Code dialog followed by the next dialog - which should appear before QR-Code dialog hasn't been finished.

Then tested with
Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (de_DE.UTF-8); UI: en-US
Calc: threaded

and got the error. When changing back to Locale: de-DE the error won't appear. In never version of this database I'm using the same code and change from German locale to English locale with the code without any problem.
Comment 3 Buovjaga 2025-10-14 18:01:50 UTC
Generating a German locale and running with LC_ALL=de_DE.utf8 makes it work for me. I think I reproduce. The QR dialog opens and after a moment I get a dialog asking to send the invoice via mail Yes / No.

I guess this is an implementation error as the feature is relatively new.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d0e936765b1b68d614271642629df6c615c7e9ae
CPU threads: 8; OS: Linux 6.17; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.utf8); UI: en-US
Calc: CL threaded