From 90a3cecb062a4a1bc5b36aaff577a394f17231ec Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 15 Feb 2016 21:30:13 +0100 Subject: [PATCH] CFrameBuffer::getIconSize check if pic is icon --- src/driver/framebuffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index b6fbc4d59..4c77ed633 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -1020,6 +1020,10 @@ void CFrameBuffer::getIconSize(const char * const filename, int* width, int *hei if(filename == NULL) return; + //check for full path, icon don't have full path, or ? + if (filename[0]== '/'){ + return; + } std::map::iterator it;