Download it now!
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)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisectRequest, regression
Depends on:
Reported: 2019-02-05 01:43 UTC by Douglas R Almeida
Modified: 2020-06-05 19:52 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

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

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
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: (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:
Build ID: 1ac54de7869d5809a312acad0a37d48028ad9d3b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 

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

Form-Control: Button lost icon
Comment 4 Oliver Brinzing 2019-02-07 18:30:38 UTC
reproducible with;

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


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-// OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="" xmlns:script="" dlg:id="Dialog1" dlg:left="140" dlg:top="63" dlg:width="196" dlg:height="135" dlg:closeable="true" dlg:moveable="true">
  <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"/>

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

with lo the graphic is linked, eg.:
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

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?