From 9ce9591cfb0c4ae5fcd272e1141472b2997f47b3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Sun, 20 Dec 2015 22:50:23 -0600 Subject: twmsg: fix notfound detection Change-Id: Ie95fdfaed7011994ac11202d070edeb95032b805 --- gui/twmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/twmsg.cpp b/gui/twmsg.cpp index f9ffefc53..6c3bad4ae 100644 --- a/gui/twmsg.cpp +++ b/gui/twmsg.cpp @@ -33,7 +33,7 @@ std::string Message::GetFormatString(const std::string& name) const resname = name.substr(0, pos); std::string formatstr = resourceLookup(resname); - bool notfound = formatstr.empty() || formatstr[0] == '['; // HACK: TODO: integrate this with resource-not-found logic + bool notfound = formatstr.empty() || formatstr.substr(0, 2) == "{@"; // HACK: TODO: integrate this with resource-not-found logic if (notfound && pos != std::string::npos) // resource not found - use the default format string specified after "=" formatstr = name.substr(pos + 1); -- cgit v1.2.3