summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-29 17:20:37 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-10-30 12:06:24 +0100
commit998057c36b6df4a12818824d770121f779725f72 (patch)
tree90a3432f552ff029421f85c3eb3c3910a7bf66fb /vcl/source/image
parent282126c22cccac60388df2cbf3216acb3ba33e21 (diff)
fix vcldemo lookup of icons
Icon themes are in [srcdir]/icon-themes, which is not necessarily the same as $PWD/icon-themes. Change-Id: Id2c5037afcbea4ea7dd511a9e10e19e05fa52a5a Reviewed-on: https://gerrit.libreoffice.org/81701 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImplImageTree.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index 21901a9b940e..df561e87a842 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -464,14 +464,10 @@ void ImplImageTree::createStyle()
if (isVclDemo())
{
- static OUString s_workingDir;
- if (!s_workingDir.getLength())
- osl_getProcessWorkingDir( &s_workingDir.pData );
-
if (maCurrentStyle == "default")
- sThemeUrl = s_workingDir + "/icon-themes/colibre-svg";
+ sThemeUrl = "file://" SRC_ROOT "/icon-themes/colibre-svg";
else
- sThemeUrl = s_workingDir + "/icon-themes/" + maCurrentStyle;
+ sThemeUrl = "file://" SRC_ROOT "/icon-themes/" + maCurrentStyle;
}
else if (maCurrentStyle != "default")
{