CFrameBuffer: Fix paintIcon() for use icons with full path

This commit is contained in:
M. Liebmann
2014-10-06 22:57:05 +02:00
committed by [CST] Focus
parent 088809b76f
commit a4fdd17407

View File

@@ -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"; std::string newname = std::string(ICONDIR_VAR) + filename + ".png";
if (access(newname.c_str(), F_OK)) if (access(newname.c_str(), F_OK))
newname = iconBasePath + filename + ".png"; 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); //printf("CFrameBuffer::paintIcon: check for %s\n", newname.c_str());fflush(stdout);
data = g_PicViewer->getIcon(newname, &width, &height); data = g_PicViewer->getIcon(newname, &width, &height);