summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Tools.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx
index c49177e97a11..7811c9c7c82d 100644
--- a/sfx2/source/sidebar/Tools.cxx
+++ b/sfx2/source/sidebar/Tools.cxx
@@ -51,12 +51,10 @@ Image Tools::GetImage (
{
if (rsURL.getLength() > 0)
{
- OUString sPath;
-
if (rsURL.startsWith(".uno:"))
return vcl::CommandInfoProvider::GetImageForCommand(rsURL, rxFrame);
- else if (rsURL.startsWith("private:graphicrepository/", &sPath))
+ else
return Image(rsURL);
}
return Image();