Bug 121044 - Form-Control: Button lost icon
Summary: Form-Control: Button lost icon
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Regressions-imageHandling
  Show dependency treegraph
 
Reported: 2018-10-29 19:35 UTC by BGWitt
Modified: 2022-05-12 09:52 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
ODS-File (20.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-10-29 19:35 UTC, BGWitt
Details
Corresponding PNG-file (2.15 KB, image/png)
2018-10-29 19:36 UTC, BGWitt
Details
test file created with LO 5.4.7.2 (20.05 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-10-30 18:10 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BGWitt 2018-10-29 19:35:42 UTC
Created attachment 146150 [details]
ODS-File

I use button in a calc-sheet (form control) with a linked PNG-file. In LO 6.0.1.1 is all correct. If I start the sheet with 6.1.1.2, then the button is without the PNG-file. The properties for the picture at the button are lost.

Sorry for my bad english.
Comment 1 BGWitt 2018-10-29 19:36:34 UTC
Created attachment 146151 [details]
Corresponding PNG-file
Comment 2 Oliver Brinzing 2018-10-30 18:10:20 UTC
Created attachment 146171 [details]
test file created with LO 5.4.7.2

your attached file has an *absolute* link to the png file:

<form:button form:name="PushButton" form:control-implementation="ooo:com.sun.star.form.component.CommandButton" xml:id="control1" form:id="control1" form:label="Ende OHNE Speichern" xlink:href="" 
form:image-data="file:///K:/Daten/Tools%20&amp;%20Technik/OpenDocumentFormat/Musterdateien/Kasse/VR_Icon_09.png" form:delay-for-repeat="PT0.050000000S" form:image-position="top" form:image-align="center">

but i think this is a bug:
- downloaded file and png into same folder
- opened file with LO 5.4.7.2/LO 6.0.7 and added the file URL.
- LO will save a *relative* URL:
  <form:button form:name="PushButton" form:control-
  implementation="ooo:com.sun.star.form.component.CommandButton"
  xml:id="control1" form:id="control1" form:label="Ende OHNE Speichern" 
  xlink:href="" form:image-data="../VR_Icon_09.png" form:delay-for-
  repeat="PT0.050000000S" form:image-position="top" form:image-align="center">
- save and reload: png is visible
- open file with LO 6.1.3.1: png is not visible

caused by new graphic handling in LO 6.1?
Comment 3 Xisco Faulí 2018-10-31 13:48:44 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=9fb7aaf570c03c8a26d763f1205fb8c890e8211a

author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	2018-04-13 16:58:49 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	2018-04-16 02:52:02 +0200
commit 9fb7aaf570c03c8a26d763f1205fb8c890e8211a (patch)
tree 8f4466b24d9fcae2da5043479a57fabc662a2c43
parent ba69036c8e889237da4bb312d7c5c94066abbfd3 (diff)
Make linked graphic register into LinkedManager again

Bisected with: bibisect-linux64-6.1

Adding Cc: to Tomaž Vajngerl
Comment 4 QA Administrators 2021-06-11 03:49:15 UTC Comment hidden (obsolete)
Comment 5 Timur 2021-08-16 09:06:50 UTC
Repro 7.3+ with attachment 146171 [details].