aboutsummaryrefslogtreecommitdiff
path: root/src/Layer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Layer.hh')
-rw-r--r--src/Layer.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Layer.hh b/src/Layer.hh
index 14054b0..9aaca0a 100644
--- a/src/Layer.hh
+++ b/src/Layer.hh
@@ -48,7 +48,7 @@ public:
48 static int getNumFromString(const std::string &str) { 48 static int getNumFromString(const std::string &str) {
49 int tempnum = 0; 49 int tempnum = 0;
50 std::string v = FbTk::StringUtil::toLower(str); 50 std::string v = FbTk::StringUtil::toLower(str);
51 if (sscanf(str.c_str(), "%d", &tempnum) == 1) 51 if (FbTk::StringUtil::extractNumber(str, tempnum))
52 return tempnum; 52 return tempnum;
53 if (v == "menu") 53 if (v == "menu")
54 return ::Layer::MENU; 54 return ::Layer::MENU;