X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.cpp;fp=image_input.cpp;h=e763ad599d7d7695dbfe7d788c8ba40a06d58eb1;hb=960b096ad2763e4296b9392e634bb6ab4896032f;hp=92c58eca1956bfa595f6d04ba84b0157057b1b8c;hpb=6c6b3789c78670e75a72edf743d204ab056bd9e0;p=nageru diff --git a/image_input.cpp b/image_input.cpp index 92c58ec..e763ad5 100644 --- a/image_input.cpp +++ b/image_input.cpp @@ -39,6 +39,11 @@ using namespace std; string search_for_file(const string &filename) { + if (!filename.empty() && filename[0] == '/') { + // Absolute path. + return filename; + } + // Look for the file in all theme_dirs until we find one; // that will be the permanent resolution of this file, whether // it is actually valid or not.