Bug 51864 - EDITING: Forms - embedding graphics into 'push button' does not work - manual hack
Summary: EDITING: Forms - embedding graphics into 'push button' does not work - manual...
Status: CLOSED DUPLICATE of bug 47832
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
3.5.4 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 06:24 UTC by Mateusz
Modified: 2012-11-03 00:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
all necessary files, with examples (178.90 KB, application/x-zip-compressed)
2012-07-08 06:24 UTC, Mateusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz 2012-07-08 06:24:32 UTC
Created attachment 63972 [details]
all necessary files, with examples

Problem description: 
Push buttons have property "Graphics", where you can link (or embed) a graphic file to be displayed on the button.
Embedding does not work.

Steps to reproduce:
1. Create a new .odb.
2. Create a new form, with one push button.
3. Edit properties of the button, and select [...] button next to the graphics section (see attachment: button_properties.png)
4. Select file with graphics, and UNCHECK 'link' checkbox
(see attachment: trying_to_embed_a_picture.png)
5. Click Open. An image is being displayed.
6. Save form, save .dob, and quit Base.

Current behavior:
When opening saved .odb file, there is no embedded graphics.

Expected behavior:
The embedded graphics is being added to the .odb file.

CUSTOM HACK:
I had another .dob file with images, and I browsed .dob in Total Commander, (it seems like a regular .zip file)
I was able to manually add an 'embedded' graphic file, by going to:
TEST_hacked.odb\forms\Obj12\
and then adding manually a subfolder: 
TEST_hacked.odb\forms\Obj12\Pictures\
and pasting (from another .odb file) the file:
100002000000006700000029039C94D1.gif

NOTE: This .gif has changed name (I do not know what mechanism is responsible for it).
The folder 'Pictures' was somehow present in my another .odb file, but not in this sample.

So here are attachments:
TEST.odb - genuine .dob, with linked image.
TTTC.gif - the file to be linked
TEST_embedding.odb - this is a result when you try to embed a graphic - it is not being embedded.
TEST_hacked.odb - this is file manually modified:
  - added subfolder "Pictures"
  - added file 100002000000006700000029039C94D1.gif
  - modified TEST_hacked.odb\forms\Obj12\content.xml file, so it contains the key:
   form:image-data="Pictures/100002000000006700000029039C94D1.gif"
Please compare this content.xml file with TEST.odb

Platform (if different from the browser):  Windows 7 64bit

Kind Regards,
Mateusz
Comment 1 Regina Henschel 2012-07-11 19:03:45 UTC
I see the same error with an image button too. I have used LO3.7 (dev) on WinXP.
Comment 2 Alex Thurgood 2012-07-12 08:14:27 UTC

*** This bug has been marked as a duplicate of bug 47832 ***