From 4332cea3d0b879e8103372fa08db96de337a2cd5 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 30 May 2013 19:59:50 +0300 Subject: [PATCH] Fixes to f8c3f11 --- Library/CommandHandler.cpp | 3 ++- Library/CommandHandler.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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