diff --git a/Library/CommandHandler.cpp b/Library/CommandHandler.cpp index 69a40ad6..2a26d819 100644 --- a/Library/CommandHandler.cpp +++ b/Library/CommandHandler.cpp @@ -845,7 +845,8 @@ void CCommandHandler::DoWriteKeyValueBang(std::vector& args, CMete if (skin) { double value; - if (skin->GetParser().ParseFormula(strValue, &value)) + formula = skin->GetParser().ParseFormula(strValue, &value); + if (formula) { WCHAR buffer[256]; int len = _snwprintf_s(buffer, _TRUNCATE, L"%.5f", value); diff --git a/Library/CommandHandler.h b/Library/CommandHandler.h index 237c6ddc..ddcd0a93 100644 --- a/Library/CommandHandler.h +++ b/Library/CommandHandler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Rainmeter Team + Copyright (C) 2013 Rainmeter Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License