From a4fdd17407fdefcc484ac7756d0650cbcf9013ea Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Mon, 6 Oct 2014 22:57:05 +0200 Subject: [PATCH] CFrameBuffer: Fix paintIcon() for use icons with full path --- src/driver/framebuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index 862b2a373..4331ce20c 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -1066,6 +1066,8 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in std::string newname = std::string(ICONDIR_VAR) + filename + ".png"; if (access(newname.c_str(), F_OK)) newname = iconBasePath + filename + ".png"; + if (filename.find("/", 0) != std::string::npos) + newname = filename; //printf("CFrameBuffer::paintIcon: check for %s\n", newname.c_str());fflush(stdout); data = g_PicViewer->getIcon(newname, &width, &height);