Bug 136770

Summary: QR code generator does not work correctly if the properties (URL/Text) are set using a macro
Product: LibreOffice Reporter: Juergen Klatt <jrk33>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED DUPLICATE    
Severity: normal CC: aron.budea, buzea.bogdan, oliver.brinzing
Priority: medium    
Version: 7.0.1.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 127232    
Attachments: Macro changes position, size and the property URL/Text of the QR-Code

Description Juergen Klatt 2020-09-15 12:49:12 UTC
Created attachment 165521 [details]
Macro changes position, size and the property URL/Text of the QR-Code

Hello,
I have a problem with generating or editing a QR-Code using a macro.

It may be that my macro is faulty or it is a bug in LibreOffice.
A more detailed description including the macro can be found in the attachment.

User profile reset = Yes

tested with: 
A)
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

B)
Version: 7.1.0.0.alpha0+ (x64)
Build ID: b42d55577566b2e6ca96530868a456b111632f94
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Also I used external QR-Code programms to check the QR-Codes:
A)
Offline Generator and Scanner
CodeTwo QR Code Desktop Reader & Generator 1.1.2.4
https://www.codetwo.com/freeware/qr-code-desktop-reader/?sts=1375

B)
Online  Generator and Scanner
https://webqr.com/

Best Regards

Juergen
Comment 1 Jan-Marek Glogowski 2020-09-15 14:48:25 UTC
The only place generating the SVG of the QR code is currently the QR code dialog (see QrCodeGenDialog::GenerateQRCode, which contains the only call to qrcodegen::QrCode::encodeText). So it's currently impossible to work with QR codes in any automated way.

IMHO a change to the QRCodeProperties should update the SVG.
Comment 2 Juergen Klatt 2020-09-15 15:33:10 UTC
Hello Jan-Marek,

it was a great idea to integrate the QR code generator into LibreOffice, I am sad that it is not possible to control it via a macro.

Is it planned in the future via macro on the QR
Access code generator.

> IMHO a change to the QRCodeProperties should update the SVG.

I've applied this Struct QRCodeProperties in my macro.

When I read out the "Payload" property with MRI / XRAY, the "Payload property" changed by the macro is available, but this does not lead to an SVG update.
The changed property is also displayed in the context menu, but no SVG update takes place

I have described this in my attachment.

Best Regards

Juergen
Comment 3 Roosevelt Price 2021-03-18 08:28:51 UTC Comment hidden (spam)
Comment 4 Mike Kaganski 2021-03-24 09:14:07 UTC

*** This bug has been marked as a duplicate of bug 128779 ***
Comment 5 Oliver jake 2021-10-21 10:08:46 UTC Comment hidden (spam)