From 0f554c1c590487c32afa542b2721492bf341ea61 Mon Sep 17 00:00:00 2001 From: jed Date: Mon, 16 Jul 2012 15:36:54 -0700 Subject: [PATCH] compile on windows --- newcoin.vcxproj | 1 + newcoin.vcxproj.filters | 3 +++ src/Amount.cpp | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/newcoin.vcxproj b/newcoin.vcxproj index e9790d155a..58d9966419 100644 --- a/newcoin.vcxproj +++ b/newcoin.vcxproj @@ -116,6 +116,7 @@ + diff --git a/newcoin.vcxproj.filters b/newcoin.vcxproj.filters index 7de6413e29..168f3736bb 100644 --- a/newcoin.vcxproj.filters +++ b/newcoin.vcxproj.filters @@ -264,6 +264,9 @@ Source Files\websocketpp + + Source Files + diff --git a/src/Amount.cpp b/src/Amount.cpp index a5ba86d145..f02acf78b8 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -836,11 +836,17 @@ Json::Value STAmount::getJson(int) const { Json::Value elem(Json::objectValue); - elem["value"] = getText(); + // This is a hack, many places don't specify a currency. STAmount is used just as a value. if (!mIsNative) + { + elem["value"] = getText(); elem["currency"] = getCurrencyHuman(); + }else + { + elem=getText(); + } return elem; }