Bug 132060 - Imported custom icons are not used on reload
Summary: Imported custom icons are not used on reload
Status: RESOLVED DUPLICATE of bug 130445
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-12 06:46 UTC by pierre-yves samyn
Modified: 2020-09-07 15:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
ImportIcon.odt (Doc with custom toolbar) (9.42 KB, application/vnd.oasis.opendocument.text)
2020-04-12 06:48 UTC, pierre-yves samyn
Details
mainapp_16.png 16x16 (231 bytes, image/png)
2020-04-12 06:49 UTC, pierre-yves samyn
Details
mainapp_24.png 24x24 (2.36 KB, image/png)
2020-04-12 06:50 UTC, pierre-yves samyn
Details
mainapp_26.png 26x26 pixels (2.75 KB, image/png)
2020-04-12 06:51 UTC, pierre-yves samyn
Details
mainapp_32.png 32x32 pixels (831 bytes, image/png)
2020-04-12 06:51 UTC, pierre-yves samyn
Details
IconImported.png (192.69 KB, image/png)
2020-04-12 06:54 UTC, pierre-yves samyn
Details
IconBlank.png (174.29 KB, image/png)
2020-04-12 06:54 UTC, pierre-yves samyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pierre-yves samyn 2020-04-12 06:46:55 UTC
Description:
Context: add new icons to the list of icons.
It is possible to add a new icon. It is recognized when importing and can be assigned to a toolbar button, but when reloading the document or module (depending on whether the toolbar is linked to the document or module), the icon is no longer recognized.

Steps to Reproduce:
0. download the attached ImportIcon.odt and icons files (png)
1. Open the attached ImportIcon.odt
2. Right click the 150% button in the PYS custom toolbar (below Default Style listbox), select Customize toolbar
3. Select 150% in the Assigned Commands list
4. Click Modify>Change Icon
5. Click Import> select e.g. mainapp_16.png

The icon is imported (see IconImported.png)

6. Select the icon (to assign it to the button)
7. Click Ok and Ok again to close dialog

Expected & actual result: icon is displayed

8. Save & reload the document: no icon
9. Right click the 150% button,  select Customize toolbar
10. Select 150% in the Assigned Commands list
11. Click Modify>Change Icon

icon is referenced but blank and not assigned (see IconBlank.png)

More information : result is the same with 24x24, 26x26, 32x32

note in the Change dialog says :
the size of an icon should be 24x24 pixels…

The help page says :
You can only import icons that are in the PNG file format and that are 16x16 or 26x26 pixels in size

There is at least one inconsistency between the note and the help page.

Actual Results:



Expected Results:




Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.2.2 (x64)
Build ID: 4e471d8c02c9c90f512f7f9ead8875b57fcb1ec3
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win; 
Locale: fr-FR (fr_FR); UI-Language: en-US
Calc: threaded

Also reproduced on https://ask.libreoffice.org/fr/question/237964/icone-de-bouton-qui-disparait/
Comment 1 pierre-yves samyn 2020-04-12 06:48:27 UTC
Created attachment 159500 [details]
ImportIcon.odt (Doc with custom toolbar)
Comment 2 pierre-yves samyn 2020-04-12 06:49:26 UTC
Created attachment 159501 [details]
mainapp_16.png 16x16
Comment 3 pierre-yves samyn 2020-04-12 06:50:27 UTC
Created attachment 159502 [details]
mainapp_24.png 24x24
Comment 4 pierre-yves samyn 2020-04-12 06:51:05 UTC
Created attachment 159503 [details]
mainapp_26.png 26x26 pixels
Comment 5 pierre-yves samyn 2020-04-12 06:51:35 UTC
Created attachment 159504 [details]
mainapp_32.png 32x32 pixels
Comment 6 pierre-yves samyn 2020-04-12 06:54:00 UTC
Created attachment 159505 [details]
IconImported.png
Comment 7 pierre-yves samyn 2020-04-12 06:54:55 UTC
Created attachment 159506 [details]
IconBlank.png
Comment 8 TISSENDIER Pierre 2020-04-26 09:35:16 UTC
Same problem exits for bug #126849

bug always presents in 6.4.3.2


Version : 6.4.3.2
Build ID : 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 9 Jean-Michel COSTE 2020-06-08 21:58:34 UTC
Same in v6.3.6.2
Comment 10 TISSENDIER Pierre 2020-06-09 07:36:40 UTC
idem in
Version : 6.4.4.2
Build ID : 3d775be2011f3886db32dfd395a6a6d1ca2630ff
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 11 Jean-Michel COSTE 2020-07-29 15:52:47 UTC
Hello,
Always present in 7.0.0.2
I am extremely disappointed. What is the point of signaling if nobody takes notice?
Comment 12 pierre-yves samyn 2020-07-30 06:33:31 UTC
(In reply to Jean-Michel COSTE from comment #11)
> I am extremely disappointed. What is the point of signaling if nobody takes
> notice?

If the bug is not reported, no one will fix it. If it is, a developer *may* be working on fixing it. To do so, he must be interested in the subject and available if he is a volunteer... or paid specifically for it. 

As for me I'm very disappointed by this comment, which at best will have no other effect than to show your ignorance of the eco-system, and at worst could discourage anyone from working on the bug.

"Everyone sees noon at his door" but I'm afraid there are bugs that are more urgent to fix than this one.
Comment 13 Jean-Michel COSTE 2020-08-17 13:00:50 UTC
After looking through the bug list, this one was reported, but on Base and Writer modules, while it occurs on all modules.
It is found in particular (these are the ones I found ...) in the following reports:
<a href="https://bugs.documentfoundation.org/show_bug.cgi?id=129325">Bug 129325</a>
<a href="https://bugs.documentfoundation.org/show_bug.cgi?id=130445>"Bug 130445</a>
<a href="https://bugs.documentfoundation.org/show_bug.cgi?id=132060">Bug 132060</a>
<a href>"https://bugs.documentfoundation.org/show_bug.cgi?id=135685">Bug 135685</a>
Comment 14 Jean-Michel COSTE 2020-09-07 15:12:26 UTC

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