Bug 79977

Summary: GALLERY: image paths should be simplified
Product: LibreOffice Reporter: Yousuf Philips (jay) (retired) <philipz85>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: jmadero.dev, jorendc
Priority: medium    
Version: 4.2.4.2 release   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 99671, 112524    

Description Yousuf Philips (jay) (retired) 2014-06-13 11:55:53 UTC
Using attachment 100973 [details], you will see that top image path of the arrow is set to -

/usr/lib/libreoffice/program/../share/gallery/arrows/A04-Arrow-DarkRed-Right.png

when it should be simplified as -

/usr/lib/libreoffice/share/gallery/arrows/A04-Arrow-DarkRed-Right.png

While with the second image path, it exceeds the given area.
Comment 1 Jorendc 2014-06-21 16:50:55 UTC
Agreed and repro on Mac OSX 10.9 :-).
Comment 2 Yousuf Philips (jay) (retired) 2014-06-21 17:10:56 UTC
a command like `$ readlink --canonicalize /home/jay/Desktop/../Desktop/` could be used to simplify the path to '/home/jay/Desktop/'.
Comment 3 Yousuf Philips (jay) (retired) 2014-06-21 17:18:45 UTC
Regarding the second image path, jmadero suggested that '/.../' be added to the simplified path, so that the path could be fit in the provided area and a tooltip be added to show the full path, similar to what can be found in most file managers when you open up a file's properties dialog.
Comment 4 Yousuf Philips (jay) (retired) 2014-10-22 15:07:38 UTC
Now that the gallery is only in the sidebar, this problem has been resolved because the filename path is not displayed anymore.