Elm theme: correct parse a theme filename on Windows OS.

Windows os uses ':'  as delimiter between disk name and file path.
<disk>:/<dir>/file.ext. In this commit added parse case for <disk_name>
symbol meets before ":/".
This commit is contained in:
Mykyta Biliavskyi 2016-10-20 18:14:32 +03:00
parent db7b6dd7e0
commit 86928a430c
1 changed files with 2 additions and 1 deletions

View File

@ -399,8 +399,9 @@ _elm_theme_parse(Elm_Theme *th, const char *theme)
eina_strbuf_append_char(buf, ':');
pe += 2;
}
else if ((pe[0] == ':') && (pe[1] == '\\'))
else if ((isalpha(pe[0]) && (pe[1] == ':') && pe[2] == '/'))
{
// Correct processing file path on Windows OS "<disk>:/"
eina_strbuf_append_char(buf, *pe);
pe++;
eina_strbuf_append_char(buf, *pe);