Bug 79977 - GALLERY: image paths should be simplified
Summary: GALLERY: image paths should be simplified
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.4.2 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Gallery File-Name
  Show dependency treegraph
 
Reported: 2014-06-13 11:55 UTC by Yousuf Philips (jay) (retired)
Modified: 2017-10-21 22:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.