aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Theme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Theme.cc')
-rw-r--r--src/FbTk/Theme.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc
index ce3b3b4..cd478fc 100644
--- a/src/FbTk/Theme.cc
+++ b/src/FbTk/Theme.cc
@@ -117,6 +117,8 @@ bool ThemeManager::unregisterTheme(Theme &tm) {
117bool ThemeManager::load(const string &filename, 117bool ThemeManager::load(const string &filename,
118 const string &overlay_filename, int screen_num) { 118 const string &overlay_filename, int screen_num) {
119 string location = FbTk::StringUtil::expandFilename(filename); 119 string location = FbTk::StringUtil::expandFilename(filename);
120 StringUtil::removeTrailingWhitespace(location);
121 StringUtil::removeFirstWhitespace(location);
120 string prefix = ""; 122 string prefix = "";
121 123
122 if (FileUtil::isDirectory(filename.c_str())) { 124 if (FileUtil::isDirectory(filename.c_str())) {
@@ -263,4 +265,4 @@ void ThemeManager::listItems() {
263 265
264} 266}
265*/ 267*/
266}; // end namespace FbTk 268} // end namespace FbTk