Bug 123167 - BASIC: Pictures in buttons are not persistent in a dialog
Summary: BASIC: Pictures in buttons are not persistent in a dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 147944 (view as bug list)
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2019-02-05 01:43 UTC by Douglas R Almeida
Modified: 2025-09-21 14:05 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Doc with a dialog and a button (9.72 KB, application/vnd.oasis.opendocument.text)
2019-02-05 01:44 UTC, Douglas R Almeida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas R Almeida 2019-02-05 01:43:44 UTC
Description:
When I set a picture to a button in Basic Dialog Editor, it works.
But, I save the dialog and the file and, after reopening, all pictures have gone.

Steps to Reproduce:
1.Go to Tools - Macros - Organize Dialogs, and then click New.
2.Afer give a name, click in Edit. The Basic dialog editor opens.
3.Add a button. Set a picture.
4.Save the dialog and the file.
5.Close the file.
6.Reopen the file and go to Dialog Editor again.


Actual Results:
The button is shown without the picture.

Expected Results:
The button should be shown with the picture.


Reproducible: Always


User Profile Reset: No



Additional Info:
Versão: 6.2.0.3 (x64)
ID de compilação: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
Threads da CPU:4; SO:Windows 10.0; Realizador da interface: padrão; VCL: win; 
Local: pt-BR (pt_BR); Idioma de IU: pt-BR
Calc: threaded
Comment 1 Douglas R Almeida 2019-02-05 01:44:52 UTC
Created attachment 148884 [details]
Doc with a dialog and a button
Comment 2 raal 2019-02-05 06:17:17 UTC
Confirm with Version: 6.3.0.0.alpha0+
Build ID: 1ac54de7869d5809a312acad0a37d48028ad9d3b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 


regression, works in Version: 4.1.0.0.alpha1+
Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40
Comment 3 Oliver Brinzing 2019-02-05 18:18:53 UTC
maybe a dup of:

Form-Control: Button lost icon
https://bugs.documentfoundation.org/show_bug.cgi?id=121044
Comment 4 Oliver Brinzing 2019-02-07 18:30:38 UTC
reproducible with;

Version: 6.1.5.2 (x64)
Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: 

dialog1.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="140" dlg:top="63" dlg:width="196" dlg:height="135" dlg:closeable="true" dlg:moveable="true">
 <dlg:bulletinboard>
  <dlg:button dlg:id="CommandButton1" dlg:tab-index="0" dlg:left="31" dlg:top="25" dlg:width="145" dlg:height="74" dlg:value="CommandButton1" dlg:image-src="Pictures/10000000000002C20000020182AD71E15F457B2B.jpg"/>
 </dlg:bulletinboard>
</dlg:window>

but "teste.odt" does not contain a folder "picture"

with lo 6.0.7.3 the graphic is linked, eg.:
dlg:image-src="file:///D:/Downloads/test.JPG"
Comment 5 Buovjaga 2020-06-05 19:46:25 UTC
(In reply to Oliver Brinzing from comment #3)
> maybe a dup of:
> 
> Form-Control: Button lost icon
> https://bugs.documentfoundation.org/show_bug.cgi?id=121044

I think it might be. However, it seems this is tricky to bibisect: tried with win32-6.1 repo and it has commits, where the image will simply not show, when you assign it to the button! Oldest and latest commits both work in this aspect at least. So I'm not sure how to confirm, if I can't see the image immediately after assigning it.

Any ideas?
Comment 6 QA Administrators 2022-06-06 03:27:04 UTC Comment hidden (obsolete)
Comment 7 raal 2022-10-04 21:11:01 UTC
*** Bug 147944 has been marked as a duplicate of this bug. ***
Comment 8 QA Administrators 2024-10-04 03:12:47 UTC Comment hidden (obsolete)
Comment 9 Buovjaga 2025-09-21 14:05:06 UTC
(In reply to Buovjaga from comment #5)
> (In reply to Oliver Brinzing from comment #3)
> > maybe a dup of:
> > 
> > Form-Control: Button lost icon
> > https://bugs.documentfoundation.org/show_bug.cgi?id=121044
> 
> I think it might be. However, it seems this is tricky to bibisect: tried
> with win32-6.1 repo and it has commits, where the image will simply not
> show, when you assign it to the button! Oldest and latest commits both work
> in this aspect at least. So I'm not sure how to confirm, if I can't see the
> image immediately after assigning it.

Tried again, now always checking the "Link" option when inserting the image hoping for a more consistent result. With linux-64-6.1, I got 043273e721ade64e4fb42f969cf22b4202c6b80d
xmlscript: change import/export to not use GraphicObject URL

It is certainly relevant for this case as xmlscript module is about BASIC dialogs.

I see there was a fix for an issue pointing to the same commit, bug 130793 but I still repro this one with master.

Arch Linux 64-bit
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 412c0391b56419bea6b0ff7c949ef2ced59a4d6b
CPU threads: 8; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 18 September 2025