From 70a24b992ccd4082e00396bdb89ec02dec7e6ec5 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Thu, 24 Jan 2008 04:03:04 -0800 Subject: don't require final {} on :If --- src/FbTk/LogicCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/LogicCommands.cc b/src/FbTk/LogicCommands.cc index 3545b61..15bcbdb 100644 --- a/src/FbTk/LogicCommands.cc +++ b/src/FbTk/LogicCommands.cc @@ -87,7 +87,7 @@ Command *IfCommand::parse(const std::string &command, const std::string &a RefCount > t(0), f(0); StringUtil::stringTokensBetween(cmds, args, blah, '{', '}'); - if (cmds.size() < 3) + if (cmds.size() < 2) return 0; cond = CommandParser::instance().parse(cmds[0], trusted); -- cgit v0.11.2