projects
/
platform
/
core
/
uifw
/
libscl-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dcdb5e
)
Fix the issue that image path couldn't be set using absolute path
01/254901/1
author
InHong Han
<inhong1.han@samsung.com>
Wed, 10 Mar 2021 09:50:06 +0000
(18:50 +0900)
committer
InHong Han
<inhong1.han@samsung.com>
Wed, 10 Mar 2021 09:50:22 +0000
(18:50 +0900)
Change-Id: Id5b1fadf29b7fb02050e335f408052db098d2742
scl/sclutils.cpp
patch
|
blob
|
history
diff --git
a/scl/sclutils.cpp
b/scl/sclutils.cpp
index
be440e2
..
fb8fefb
100644
(file)
--- a/
scl/sclutils.cpp
+++ b/
scl/sclutils.cpp
@@
-227,8
+227,12
@@
CSCLUtils::get_composed_path(sclchar* buf, const sclchar* prefix, const sclchar*
base_path = default_configure->image_file_base_path;
}
}
- snprintf(buf, _POSIX_PATH_MAX, "%s/%s/%s/%s",
- sclres_manager->get_resource_directory(), base_path, IMG_PATH_PREFIX, path);
+
+ if (path[0] == '/')
+ snprintf(buf, _POSIX_PATH_MAX, "%s", path);
+ else
+ snprintf(buf, _POSIX_PATH_MAX, "%s/%s/%s/%s",
+ sclres_manager->get_resource_directory(), base_path, IMG_PATH_PREFIX, path);
}
return buf;